Class CylinderGen


public class CylinderGen extends FillableShape
class to generate cylinder this class use methods to generate circles with some modifications for the height
  • Constructor Details

    • CylinderGen

      public CylinderGen(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, int radius, int height)
  • Method Details

    • setHeight

      public void setHeight(int height)
    • getHeight

      public int getHeight()
    • setRadiusX

      public void setRadiusX(int radius)
    • getRadiusX

      public int getRadiusX()
    • setRadiusZ

      public void setRadiusZ(int radius)
    • getRadiusZ

      public int getRadiusZ()
    • getBlockPos

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

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

      public List<net.minecraft.util.math.BlockPos> generateFullCylinder()
      this generates a full cylinder
      Returns:
      blockStates list of the structures
    • generateEmptyCylinder

      public List<net.minecraft.util.math.BlockPos> generateEmptyCylinder()
      this generates a full cylinder
      Returns:
      blockStates list of the structures
    • generateFatsOval

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

      public List<net.minecraft.util.math.BlockPos> getOvalBlocks(int centerX, int centerZ, int x, int y, int z)
    • placeFullOval

      public List<net.minecraft.util.math.BlockPos> placeFullOval(int centerX, int centerZ, int x, int y, int z)
    • getCircleWithRotation

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

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