Class FillableShape
java.lang.Object
net.rodofire.easierworldcreator.shapeutil.Shape
net.rodofire.easierworldcreator.shapeutil.FillableShape
- Direct Known Subclasses:
CircleGen,CylinderGen,SphereGen,TorusGen
class to change the filling of the structure
since that all structure may not need or can't have a custom filling like the line generation, it is not implemented in the ShapeGen class
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumchange how the structure is filledNested classes/interfaces inherited from class net.rodofire.easierworldcreator.shapeutil.Shape
Shape.LayerPlace, Shape.LayersType, Shape.PlaceMoment, Shape.PlaceType -
Field Summary
Fields inherited from class net.rodofire.easierworldcreator.shapeutil.Shape
biggerThanChunk -
Constructor Summary
ConstructorsConstructorDescriptionFillableShape(@NotNull net.minecraft.world.StructureWorldAccess world, @NotNull net.minecraft.util.math.BlockPos pos, Shape.PlaceMoment placeMoment) FillableShape(@NotNull net.minecraft.world.StructureWorldAccess world, @NotNull net.minecraft.util.math.BlockPos pos, Shape.PlaceMoment placeMoment, List<BlockLayer> layers, boolean force, List<net.minecraft.block.Block> blocksToForce, int xrotation, int yrotation, int secondxrotation) -
Method Summary
Modifier and TypeMethodDescriptionfloatvoidsetCustomFill(float customFill) protected voidsetFill()set the filling value depending on the filling typevoidsetFillingType(FillableShape.Type fillingType) Methods inherited from class net.rodofire.easierworldcreator.shapeutil.Shape
addBlockLayer, addBlockLayers, addBlocksToForce, addBlocksToForce, addPosOffset, addSecondxrotation, addXrotation, addYrotation, getBlockLayer, getBlockLayers, getBlockPos, getBlocksToForce, getBlockToPlace, getBlockToPlace, getChunkCovered, getCoordinatesRotation, getCoordinatesRotation, getCoordinatesRotationList, getFirstSurfaceBlockLayers, getForce, getInnerCylindricalBlocks, getInnerRadialBlocks, getLayerPlace, getLayers, getLayersType, getNoise, getOuterCylindricalBlocks, getOuterRadialBlocks, getPlaceMoment, getPlaceType, getPos, getRotations, getSecondXrotation, getVec3d, getWorld, getXrotation, getYrotation, place, place, placeBlocks, placeBlocks, placeBlocksWithVerification, placeBlocksWithVerification, placeFirstSurfaceBlockLayers, placeInnerCylindricalBlocks, placeInnerRadialBlocks, placeLayers, placeOuterCylindricalBlocks, placeOuterRadialBlocks, placeSurfaceBlockLayers, removeBlockLayer, removeBlockLayer, removeBlockLayer, setBlockLayers, setBlockLayers, setBlocksToForce, setForce, setLayerDirection, setLayerPlace, setLayersType, setNoise, setPlaceMoment, setPlaceType, setPos, setSecondxrotation, setXrotation, setYrotation, verifyBlocks
-
Constructor Details
-
FillableShape
public FillableShape(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, Shape.PlaceMoment placeMoment) - Parameters:
world- the world of the shapepos- the pos of the shape (usually the center of the structure)
-
FillableShape
public FillableShape(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, Shape.PlaceMoment placeMoment, List<BlockLayer> layers, boolean force, List<net.minecraft.block.Block> blocksToForce, int xrotation, int yrotation, int secondxrotation) - Parameters:
world- the world of the shapepos- ths pos of the shape (usually the center of the structure)layers- list of blockLayers that will be placed in the worldforce- boolean to force or not the pos of the blocksblocksToForce- list of block that the shape can still replace when force = falsexrotation- first rotation around the x-axisyrotation- second rotation around the y-axissecondxrotation- last rotation around the x-axis
-
-
Method Details
-
getFillingType
- Returns:
- the filling type
-
setFillingType
- Parameters:
fillingType- change the fillingtype
-
getCustomFill
public float getCustomFill()- Returns:
- the float of the custom fill
-
setCustomFill
public void setCustomFill(float customFill) - Parameters:
customFill- change the custom fill used to change the percentage of the radius that will be filled
-
setFill
protected void setFill()set the filling value depending on the filling type
-