Class ShapeBase
java.lang.Object
net.rodofire.easierworldcreator.shapeutil.ShapeBase
- Direct Known Subclasses:
ShapePlaceType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefine the moment the shape will be placed. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected static final int -
Constructor Summary
ConstructorsConstructorDescriptionShapeBase(@NotNull net.minecraft.world.StructureWorldAccess world, @NotNull net.minecraft.util.math.BlockPos pos, @NotNull ShapeBase.PlaceMoment placeMoment) init the ShapeBase -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlockLayer(BlockLayer blockLayer) voidaddBlockLayers(List<BlockLayer> blockLayers) voidaddPosOffset(net.minecraft.util.math.BlockPos pos1) getBlockLayer(int index) @NotNull ShapeBase.PlaceMoment@NotNull net.minecraft.util.math.BlockPosgetPos()@NotNull net.minecraft.world.StructureWorldAccessgetWorld()voidremoveBlockLayer(int index) voidremoveBlockLayer(List<BlockLayer> blockLayers) voidremoveBlockLayer(BlockLayer blockLayer) voidsetBlockLayers(List<BlockLayer> blockLayers) voidsetBlockLayers(BlockLayer... layers) voidsetPlaceMoment(@NotNull ShapeBase.PlaceMoment placeMoment) allow you to set and change the place momentvoidsetPos(@NotNull net.minecraft.util.math.BlockPos pos)
-
Field Details
-
biggerThanChunk
protected boolean biggerThanChunk -
THREAD_COUNT
protected static final int THREAD_COUNT
-
-
Constructor Details
-
ShapeBase
public ShapeBase(@NotNull @NotNull net.minecraft.world.StructureWorldAccess world, @NotNull @NotNull net.minecraft.util.math.BlockPos pos, @NotNull @NotNull ShapeBase.PlaceMoment placeMoment) init the ShapeBase- Parameters:
world- the world of the shapepos- the pos of the shape (usually the center of the structure)placeMoment- define the moment where the shape will be placed
-
-
Method Details
-
getPos
@NotNull public @NotNull net.minecraft.util.math.BlockPos getPos() -
setPos
public void setPos(@NotNull @NotNull net.minecraft.util.math.BlockPos pos) -
addPosOffset
public void addPosOffset(net.minecraft.util.math.BlockPos pos1) -
getWorld
@NotNull public @NotNull net.minecraft.world.StructureWorldAccess getWorld() -
addBlockLayers
-
addBlockLayer
-
removeBlockLayer
-
removeBlockLayer
-
removeBlockLayer
public void removeBlockLayer(int index) -
getBlockLayers
-
setBlockLayers
-
setBlockLayers
-
getBlockLayer
-
getPlaceMoment
-
setPlaceMoment
allow you to set and change the place moment- Parameters:
placeMoment- the changed parameter
-