Package net.minecraft.util.math.shapes
Class VoxelShape
- java.lang.Object
-
- net.minecraft.util.math.shapes.VoxelShape
-
- Direct Known Subclasses:
SplitVoxelShape,VoxelShapeArray,VoxelShapeCube
public abstract class VoxelShape extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private VoxelShape[]facesprotected VoxelShapePartshape
-
Constructor Summary
Constructors Constructor Description VoxelShape(VoxelShapePart p_i47680_1_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AxisAlignedBBbounds()private VoxelShapecalculateFace(Direction p_222863_1_)BlockRayTraceResultclip(Vector3d p_212433_1_, Vector3d p_212433_2_, BlockPos p_212433_3_)doublecollide(Direction.Axis p_212430_1_, AxisAlignedBB p_212430_2_, double p_212430_3_)protected doublecollideX(AxisRotation p_212431_1_, AxisAlignedBB p_212431_2_, double p_212431_3_)protected intfindIndex(Direction.Axis p_197749_1_, double p_197749_2_)voidforAllBoxes(VoxelShapes.ILineConsumer p_197755_1_)voidforAllEdges(VoxelShapes.ILineConsumer p_197754_1_)protected doubleget(Direction.Axis p_197759_1_, int p_197759_2_)protected abstract it.unimi.dsi.fastutil.doubles.DoubleListgetCoords(Direction.Axis p_197757_1_)VoxelShapegetFaceShape(Direction p_212434_1_)booleanisEmpty()protected booleanisFullWide(double p_211542_1_, double p_211542_3_, double p_211542_5_)doublemax(Direction.Axis p_197758_1_)doublemax(Direction.Axis p_197760_1_, double p_197760_2_, double p_197760_4_)doublemin(Direction.Axis p_197762_1_)VoxelShapemove(double p_197751_1_, double p_197751_3_, double p_197751_5_)VoxelShapeoptimize()java.util.List<AxisAlignedBB>toAabbs()java.lang.StringtoString()
-
-
-
Field Detail
-
shape
protected final VoxelShapePart shape
-
faces
@Nullable private VoxelShape[] faces
-
-
Constructor Detail
-
VoxelShape
VoxelShape(VoxelShapePart p_i47680_1_)
-
-
Method Detail
-
min
public double min(Direction.Axis p_197762_1_)
-
max
public double max(Direction.Axis p_197758_1_)
-
bounds
public AxisAlignedBB bounds()
-
get
protected double get(Direction.Axis p_197759_1_, int p_197759_2_)
-
getCoords
protected abstract it.unimi.dsi.fastutil.doubles.DoubleList getCoords(Direction.Axis p_197757_1_)
-
isEmpty
public boolean isEmpty()
-
move
public VoxelShape move(double p_197751_1_, double p_197751_3_, double p_197751_5_)
-
optimize
public VoxelShape optimize()
-
forAllEdges
public void forAllEdges(VoxelShapes.ILineConsumer p_197754_1_)
-
forAllBoxes
public void forAllBoxes(VoxelShapes.ILineConsumer p_197755_1_)
-
toAabbs
public java.util.List<AxisAlignedBB> toAabbs()
-
max
public double max(Direction.Axis p_197760_1_, double p_197760_2_, double p_197760_4_)
-
findIndex
protected int findIndex(Direction.Axis p_197749_1_, double p_197749_2_)
-
isFullWide
protected boolean isFullWide(double p_211542_1_, double p_211542_3_, double p_211542_5_)
-
clip
@Nullable public BlockRayTraceResult clip(Vector3d p_212433_1_, Vector3d p_212433_2_, BlockPos p_212433_3_)
-
getFaceShape
public VoxelShape getFaceShape(Direction p_212434_1_)
-
calculateFace
private VoxelShape calculateFace(Direction p_222863_1_)
-
collide
public double collide(Direction.Axis p_212430_1_, AxisAlignedBB p_212430_2_, double p_212430_3_)
-
collideX
protected double collideX(AxisRotation p_212431_1_, AxisAlignedBB p_212431_2_, double p_212431_3_)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-