Class VoxelSet

java.lang.Object
net.minecraft.util.shape.VoxelSet
Direct Known Subclasses:
BitSetVoxelSet, CroppedVoxelSet

public abstract class VoxelSet
extends Object
  • Field Details

    • AXES

      private static final Direction.Axis[] AXES
    • xSize

      protected final int xSize
    • ySize

      protected final int ySize
    • zSize

      protected final int zSize
  • Constructor Details

    • VoxelSet

      protected VoxelSet​(int xSize, int ySize, int zSize)
  • Method Details

    • inBoundsAndContains

      public boolean inBoundsAndContains​(AxisCycleDirection cycle, int x, int y, int z)
    • inBoundsAndContains

      public boolean inBoundsAndContains​(int x, int y, int z)
    • contains

      public boolean contains​(AxisCycleDirection cycle, int x, int y, int z)
    • contains

      public abstract boolean contains​(int x, int y, int z)
    • set

      public abstract void set​(int x, int y, int z, boolean resize, boolean included)
    • isEmpty

      public boolean isEmpty()
    • getMin

      public abstract int getMin​(Direction.Axis axis)
    • getMax

      public abstract int getMax​(Direction.Axis axis)
    • getEndingAxisCoord

      @Environment(CLIENT) public int getEndingAxisCoord​(Direction.Axis axis, int from, int to)
    • getSize

      public int getSize​(Direction.Axis axis)
    • getXSize

      public int getXSize()
    • getYSize

      public int getYSize()
    • getZSize

      public int getZSize()
    • forEachEdge

      @Environment(CLIENT) public void forEachEdge​(VoxelSet.PositionBiConsumer positionBiConsumer, boolean bool)
    • forEachEdge

      @Environment(CLIENT) private void forEachEdge​(VoxelSet.PositionBiConsumer positionBiConsumer, AxisCycleDirection direction, boolean bool)
    • isColumnFull

      protected boolean isColumnFull​(int minZ, int maxZ, int x, int y)
    • setColumn

      protected void setColumn​(int minZ, int maxZ, int x, int y, boolean included)
    • isRectangleFull

      protected boolean isRectangleFull​(int minX, int maxX, int minZ, int maxZ, int y)
    • forEachBox

      public void forEachBox​(VoxelSet.PositionBiConsumer consumer, boolean largest)
    • forEachDirection

      public void forEachDirection​(VoxelSet.PositionConsumer positionConsumer)
    • forEachDirection

      private void forEachDirection​(VoxelSet.PositionConsumer positionConsumer, AxisCycleDirection direction)