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 int
private final int
private final int
private final DiscreteVoxelShape
private final int
private final int
private final int
Fields inherited from class net.minecraft.world.phys.shapes.DiscreteVoxelShape
xSize, ySize, zSize
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SubShape
(DiscreteVoxelShape pParent, int pStartX, int pStartY, int pStartZ, int pEndX, int pEndY, int pEndZ) -
Method Summary
Modifier and TypeMethodDescriptionprivate int
clampToShape
(Direction.Axis pAxis, int pValue) void
fill
(int pX, int pY, int pZ) int
firstFull
(Direction.Axis pAxis) boolean
isFull
(int pX, int pY, int pZ) int
lastFull
(Direction.Axis pAxis) 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 pParent, int pStartX, int pStartY, int pStartZ, int pEndX, int pEndY, int pEndZ)
-
-
Method Details
-
isFull
public boolean isFull(int pX, int pY, int pZ) - Specified by:
isFull
in classDiscreteVoxelShape
-
fill
public void fill(int pX, int pY, int pZ) - Specified by:
fill
in classDiscreteVoxelShape
-
firstFull
- Specified by:
firstFull
in classDiscreteVoxelShape
-
lastFull
- Specified by:
lastFull
in classDiscreteVoxelShape
-
clampToShape
-