Class SphereGen
java.lang.Object
net.rodofire.easierworldcreator.shapeutil.Shape
net.rodofire.easierworldcreator.shapeutil.FillableShape
net.rodofire.easierworldcreator.shapegen.SphereGen
Class to generate 3d spheres / Ellipsoid
-
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
ConstructorsConstructorDescriptionSphereGen(@NotNull net.minecraft.world.StructureWorldAccess world, @NotNull net.minecraft.util.math.BlockPos pos, int radius) init the shape generationSphereGen(@NotNull net.minecraft.world.StructureWorldAccess world, @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 -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.util.math.BlockPos> List<net.minecraft.util.math.BlockPos> generateEmptyEllipsoid(int minlarge, int maxlarge, int minheight, int maxheight) List<net.minecraft.util.math.BlockPos> 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 elipsoidList<net.minecraft.util.math.BlockPos> List<net.minecraft.util.math.BlockPos> List<net.minecraft.util.math.BlockPos> intintintList<net.minecraft.util.math.BlockPos> List<net.minecraft.util.math.Vec3d> getVec3d()voidsetRadiusx(int radiusx) voidsetRadiusy(int radiusy) 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
-
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 generatedpos- the pos of the structure centerradiusx- the radius along the x-axisradiusy- the radius along the y-axisradiusz- the radius along the z axisxrotation- the rotation along the x-axisyrotation- 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 generatedpos- the pos of the structure centerradius- 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
- Specified by:
getBlockPosin classShape
-
getVec3d
-
getStructureCoordinates
-
generateHalfEmptyElipsoid
-
generateEmptyEllipsoid
-
generateEmptyEllipsoid
public List<net.minecraft.util.math.BlockPos> generateEmptyEllipsoid(int minlarge, int maxlarge, int minheight, int maxheight) -
generateHalfFullElipsoid
-
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 axismaxx- the end of the circle on the x axisminy- the start of the circle on the y axismaxy- the end of the circle on the y axisminz- the start of the circle on the z axismaxz- the end of the circle on the z axis
-