Package net.minecraft.world.phys.shapes
Class SubShape
java.lang.Object
net.minecraft.world.phys.shapes.DiscreteVoxelShape
net.minecraft.world.phys.shapes.SubShape
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.phys.shapes.DiscreteVoxelShape
DiscreteVoxelShape.IntFaceConsumer, DiscreteVoxelShape.IntLineConsumer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final intprivate final DiscreteVoxelShapeprivate final intprivate final intprivate final intFields inherited from class net.minecraft.world.phys.shapes.DiscreteVoxelShape
xSize, ySize, zSize -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSubShape(DiscreteVoxelShape parent, int startX, int startY, int startZ, int endX, int endY, int endZ) -
Method Summary
Modifier and TypeMethodDescriptionprivate intclampToShape(Direction.Axis axis, int value) voidfill(int x, int y, int z) intfirstFull(Direction.Axis axis) booleanisFull(int x, int y, int z) intlastFull(Direction.Axis axis) Methods inherited from class net.minecraft.world.phys.shapes.DiscreteVoxelShape
firstFull, forAllBoxes, forAllEdges, forAllFaces, getSize, getXSize, getYSize, getZSize, isEmpty, isFull, isFullWide, isFullWide, lastFull
-
Field Details
-
parent
-
startX
private final int startX -
startY
private final int startY -
startZ
private final int startZ -
endX
private final int endX -
endY
private final int endY -
endZ
private final int endZ
-
-
Constructor Details
-
SubShape
protected SubShape(DiscreteVoxelShape parent, int startX, int startY, int startZ, int endX, int endY, int endZ)
-
-
Method Details
-
isFull
public boolean isFull(int x, int y, int z) - Specified by:
isFullin classDiscreteVoxelShape
-
fill
public void fill(int x, int y, int z) - Specified by:
fillin classDiscreteVoxelShape
-
firstFull
- Specified by:
firstFullin classDiscreteVoxelShape
-
lastFull
- Specified by:
lastFullin classDiscreteVoxelShape
-
clampToShape
-