Class CircleGen


public class CircleGen extends FillableShape
generate Circle
  • Constructor Details

    • CircleGen

      public CircleGen(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, @NotNull @NotNull List<BlockLayer> layers, boolean force, List<net.minecraft.block.Block> blocksToForce, int xrotation, int yrotation, int secondxrotation, int radiusx, int radiusz)
      Parameters:
      world - the world the spiral will spawn in
      pos - the center of the spiral
      layers - a list of layers that will be used for the structure
      force - boolean to force the pos of the blocks
      blocksToForce - a list of blocks that the blocks of the spiral can still force if force = false
      xrotation - first rotation around the x-axis
      yrotation - second rotation around the y-axis
      secondxrotation - last rotation around the x-axis
      radiusx - the radius of the x-axis
      radiusz - the radius of the z-axis
    • CircleGen

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

    • getRadiusx

      public int getRadiusx()
    • setRadiusx

      public void setRadiusx(int radiusx)
    • getRadiusz

      public int getRadiusz()
    • setRadiusz

      public void setRadiusz(int radiusz)
    • addRadiusx

      public void addRadiusx(int radiusx)
    • addRadiusy

      public void addRadiusy(int radiusy)
    • 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
    • generateFullOval

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

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

      public List<net.minecraft.util.math.BlockPos> generateEmptyOval(int centerX, int centerZ, int y)
      this class is used when no rotation is present. This allow fast coordinates generation but don't work with rotations
      Parameters:
      centerX - the x coordinate of the center of the circle
      centerZ - the z coordinate of the center of the circle
      y - the height of the circle
      Returns:
    • 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()