Class SphereGen


public class SphereGen extends FillableShape
Class to generate 3d spheres / Ellipsoid
  • Constructor Details

    • SphereGen

      public SphereGen(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, int radiusx, List<BlockLayer> layers, int radiusy, int radiusz, int xrotation, int yrotation, int seconxrotation, boolean force, List<net.minecraft.block.Block> blockToForce, boolean halfSphere, net.minecraft.util.math.Direction direction)
      init the shape generation
      Parameters:
      world - the world the shape will be generated
      pos - the pos of the structure center
      radiusx - the radius along the x-axis
      radiusy - the radius along the y-axis
      radiusz - the radius along the z axis
      xrotation - the rotation along the x-axis
      yrotation - the rotation along the y-axis
    • SphereGen

      public SphereGen(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, int radius)
      init the shape generation
      Parameters:
      world - the world the shape will be generated
      pos - the pos of the structure center
      radius - the radius of the sphere
  • Method Details

    • getRadiusx

      public int getRadiusx()
    • setRadiusx

      public void setRadiusx(int radiusx)
    • getRadiusy

      public int getRadiusy()
    • setRadiusy

      public void setRadiusy(int radiusy)
    • getRadiusz

      public int getRadiusz()
    • setRadiusz

      public void setRadiusz(int radiusz)
    • getBlockPos

      public List<net.minecraft.util.math.BlockPos> getBlockPos()
      Specified by:
      getBlockPos in class Shape
    • getVec3d

      public List<net.minecraft.util.math.Vec3d> getVec3d()
      Specified by:
      getVec3d in class Shape
    • getStructureCoordinates

      public List<net.minecraft.util.math.BlockPos> getStructureCoordinates()
    • generateHalfEmptyElipsoid

      public List<net.minecraft.util.math.BlockPos> generateHalfEmptyElipsoid()
    • generateEmptyEllipsoid

      public List<net.minecraft.util.math.BlockPos> generateEmptyEllipsoid()
    • generateEmptyEllipsoid

      public List<net.minecraft.util.math.BlockPos> generateEmptyEllipsoid(int minlarge, int maxlarge, int minheight, int maxheight)
    • generateHalfFullElipsoid

      public List<net.minecraft.util.math.BlockPos> generateHalfFullElipsoid()
    • generateFullEllipsoid

      public List<net.minecraft.util.math.BlockPos> generateFullEllipsoid()
    • generateFullEllipsoid

      public List<net.minecraft.util.math.BlockPos> generateFullEllipsoid(int minx, int maxx, int miny, int maxy, int minz, int maxz)
      allow you to generate a full elipsoid
      Parameters:
      minx - the start of the circle on the x axis
      maxx - the end of the circle on the x axis
      miny - the start of the circle on the y axis
      maxy - the end of the circle on the y axis
      minz - the start of the circle on the z axis
      maxz - the end of the circle on the z axis