Class SpiralGen
java.lang.Object
net.rodofire.easierworldcreator.shapeutil.Shape
net.rodofire.easierworldcreator.shapegen.SpiralGen
class to generates spiral related shapes
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumset every possible spiral shapeNested classes/interfaces inherited from class net.rodofire.easierworldcreator.shapeutil.Shape
Shape.LayerPlace, Shape.LayersType, Shape.PlaceType -
Constructor Summary
ConstructorsConstructorDescriptionSpiralGen(@NotNull net.minecraft.world.StructureWorldAccess world, @NotNull net.minecraft.util.math.BlockPos pos, int radius, int height) SpiralGen(@NotNull net.minecraft.world.StructureWorldAccess world, @NotNull net.minecraft.util.math.BlockPos pos, List<BlockLayer> layers, boolean force, List<net.minecraft.block.Block> blocksToForce, int xrotation, int yrotation, int secondxrotation, int radiusx, int radiusz, int height, float turnNumber) -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.util.math.BlockPos> generateElipsoidSpiral(net.minecraft.util.math.BlockPos pos) generates a simple spiralList<net.minecraft.util.math.BlockPos> generates an helicoid if theSpiralGen.SpiralTypeis set to HELICOID or double helicoid with their variantsList<net.minecraft.util.math.BlockPos> this allow the generation of a large outline spiral.List<net.minecraft.util.math.BlockPos> intintintintintintintfloatfloatList<net.minecraft.util.math.Vec3d> getVec3d()voidsetHeight(int height) voidsetHelicoidAngle(int helicoidAngle) voidsetOffset(int offset) voidsetOutlineRadiusx(int outlineRadiusx) voidsetOutlineRadiusz(int outlineRadiusz) voidsetRadiusx(int radiusx) voidsetRadiusz(int radiusz) voidsetSpiralFilling(float spiralFilling) voidsetSpiralType(SpiralGen.SpiralType spiralType) voidsetTurnNumber(float turnNumber) Methods 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
-
SpiralGen
public SpiralGen(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, List<BlockLayer> layers, boolean force, List<net.minecraft.block.Block> blocksToForce, int xrotation, int yrotation, int secondxrotation, int radiusx, int radiusz, int height, float turnNumber) - 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-axisheight- the height of the spiralturnNumber- the number of turns that the structure will do before reaching the top
-
SpiralGen
public SpiralGen(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, int radius, int height) - Parameters:
world- the world the spiral will spawn inpos- the center of the spiralradius- the radius of the spiralheight- the height of the spiral
-
-
Method Details
-
getOutlineRadiusz
public int getOutlineRadiusz() -
setOutlineRadiusz
public void setOutlineRadiusz(int outlineRadiusz) -
getOutlineRadiusx
public int getOutlineRadiusx() -
setOutlineRadiusx
public void setOutlineRadiusx(int outlineRadiusx) -
getSpiralFilling
public float getSpiralFilling() -
setSpiralFilling
public void setSpiralFilling(float spiralFilling) -
getSpiralType
-
setSpiralType
-
getHeight
public int getHeight() -
setHeight
public void setHeight(int height) -
getRadiusz
public int getRadiusz() -
setRadiusz
public void setRadiusz(int radiusz) -
getRadiusx
public int getRadiusx() -
setRadiusx
public void setRadiusx(int radiusx) -
getTurnNumber
public float getTurnNumber() -
setTurnNumber
public void setTurnNumber(float turnNumber) -
getOffset
public int getOffset() -
setOffset
public void setOffset(int offset) - Parameters:
offset- the offset of the start of the spiral
-
getHelicoidAngle
public int getHelicoidAngle() -
setHelicoidAngle
public void setHelicoidAngle(int helicoidAngle) - Parameters:
helicoidAngle- the angle of the blocks on the side
-
getBlockPos
- Specified by:
getBlockPosin classShape
-
getVec3d
-
generateElipsoidSpiral
public List<net.minecraft.util.math.BlockPos> generateElipsoidSpiral(net.minecraft.util.math.BlockPos pos) generates a simple spiral- Parameters:
pos- the center of the spiral. This can be changed to match certain needing like when generating a large outline- Returns:
- a list of blockPos that will be used to place the structure
-
generateLargeOutlineSpiral
this allow the generation of a large outline spiral.- Returns:
- BlockPos list
-
generateHelicoid
generates an helicoid if theSpiralGen.SpiralTypeis set to HELICOID or double helicoid with their variants- Returns:
-