java.lang.Object
net.rodofire.easierworldcreator.shapeutil.ShapeBase
Direct Known Subclasses:
ShapePlaceType

public abstract class ShapeBase extends Object
  • 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 shape
      pos - 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

      public void addBlockLayers(List<BlockLayer> blockLayers)
    • addBlockLayer

      public void addBlockLayer(BlockLayer blockLayer)
    • removeBlockLayer

      public void removeBlockLayer(List<BlockLayer> blockLayers)
    • removeBlockLayer

      public void removeBlockLayer(BlockLayer blockLayer)
    • removeBlockLayer

      public void removeBlockLayer(int index)
    • getBlockLayers

      public List<BlockLayer> getBlockLayers()
    • setBlockLayers

      public void setBlockLayers(List<BlockLayer> blockLayers)
    • setBlockLayers

      public void setBlockLayers(BlockLayer... layers)
    • getBlockLayer

      public BlockLayer getBlockLayer(int index)
    • getPlaceMoment

      @NotNull public @NotNull ShapeBase.PlaceMoment getPlaceMoment()
    • setPlaceMoment

      public void setPlaceMoment(@NotNull @NotNull ShapeBase.PlaceMoment placeMoment)
      allow you to set and change the place moment
      Parameters:
      placeMoment - the changed parameter