Class CircleGen
java.lang.Object
net.rodofire.easierworldcreator.shapeutil.Shape
net.rodofire.easierworldcreator.shapeutil.FillableShape
net.rodofire.easierworldcreator.shapegen.CircleGen
generate Circle
-
Nested Class Summary
Nested classes/interfaces inherited from class net.rodofire.easierworldcreator.shapeutil.FillableShape
FillableShape.TypeNested classes/interfaces inherited from class net.rodofire.easierworldcreator.shapeutil.Shape
Shape.LayerPlace, Shape.LayersType, Shape.PlaceType -
Constructor Summary
ConstructorsConstructorDescriptionCircleGen(@NotNull net.minecraft.world.StructureWorldAccess world, @NotNull net.minecraft.util.math.BlockPos pos, int radius) CircleGen(@NotNull net.minecraft.world.StructureWorldAccess world, @NotNull net.minecraft.util.math.BlockPos pos, @NotNull List<BlockLayer> layers, boolean force, List<net.minecraft.block.Block> blocksToForce, int xrotation, int yrotation, int secondxrotation, int radiusx, int radiusz) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRadiusx(int radiusx) voidaddRadiusy(int radiusy) List<net.minecraft.util.math.BlockPos> List<net.minecraft.util.math.BlockPos> generateEmptyOval(int centerX, int centerZ, int y) this class is used when no rotation is present.List<net.minecraft.util.math.BlockPos> List<net.minecraft.util.math.BlockPos> List<net.minecraft.util.math.BlockPos> List<net.minecraft.util.math.BlockPos> getOvalBlocks(int centerX, int centerZ, int x, int y, int z) intintList<net.minecraft.util.math.Vec3d> getVec3d()List<net.minecraft.util.math.BlockPos> placeFullOval(int centerX, int centerZ, int x, int y, int z) voidsetRadiusx(int radiusx) voidsetRadiusz(int radiusz) Methods inherited from class net.rodofire.easierworldcreator.shapeutil.FillableShape
getCustomFill, getFillingType, setCustomFill, setFill, setFillingTypeMethods inherited from class net.rodofire.easierworldcreator.shapeutil.Shape
addBlockLayer, addBlockLayers, addBlocksToForce, addBlocksToForce, addPosOffset, addSecondxrotation, addXrotation, addYrotation, getBlockLayer, getBlockLayers, getBlocksToForce, getCoordinatesRotation, getCoordinatesRotation, getCoordinatesRotationList, getForce, getGenTime, getLayerPlace, getLayersType, getNoise, getPlaceType, getPos, getRotations, getSecondXrotation, getWorld, getXrotation, getYrotation, place, placeBlocks, placeBlocks, placeBlocksWithVerification, placeBlocksWithVerification, placeCylindricalBlocks, placeFirstSurfaceBlockLayers, placeLayers, placeRadialBlocks, placeSurfaceBlockLayers, removeBlockLayer, removeBlockLayer, removeBlockLayer, setBlockLayers, setBlockLayers, setBlocksToForce, setForce, setLayerDirection, setLayerPlace, setLayersType, setNoise, setPlaceType, setPos, setSecondxrotation, setXrotation, setYrotation, verifyBlocks
-
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 inpos- the center of the spirallayers- a list of layers that will be used for the structureforce- boolean to force the pos of the blocksblocksToForce- a list of blocks that the blocks of the spiral can still force if force = falsexrotation- first rotation around the x-axisyrotation- second rotation around the y-axissecondxrotation- last rotation around the x-axisradiusx- the radius of the x-axisradiusz- 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
- Specified by:
getBlockPosin classShape
-
getVec3d
-
generateFullOval
-
generateEmptyOval
-
generateEmptyOval
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 circlecenterZ- the z coordinate of the center of the circley- 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
-