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[]
faces
protected VoxelShapePart
shape
-
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 AxisAlignedBB
bounds()
private VoxelShape
calculateFace(Direction p_222863_1_)
BlockRayTraceResult
clip(Vector3d p_212433_1_, Vector3d p_212433_2_, BlockPos p_212433_3_)
double
collide(Direction.Axis p_212430_1_, AxisAlignedBB p_212430_2_, double p_212430_3_)
protected double
collideX(AxisRotation p_212431_1_, AxisAlignedBB p_212431_2_, double p_212431_3_)
protected int
findIndex(Direction.Axis p_197749_1_, double p_197749_2_)
void
forAllBoxes(VoxelShapes.ILineConsumer p_197755_1_)
void
forAllEdges(VoxelShapes.ILineConsumer p_197754_1_)
protected double
get(Direction.Axis p_197759_1_, int p_197759_2_)
protected abstract it.unimi.dsi.fastutil.doubles.DoubleList
getCoords(Direction.Axis p_197757_1_)
VoxelShape
getFaceShape(Direction p_212434_1_)
boolean
isEmpty()
protected boolean
isFullWide(double p_211542_1_, double p_211542_3_, double p_211542_5_)
double
max(Direction.Axis p_197758_1_)
double
max(Direction.Axis p_197760_1_, double p_197760_2_, double p_197760_4_)
double
min(Direction.Axis p_197762_1_)
VoxelShape
move(double p_197751_1_, double p_197751_3_, double p_197751_5_)
VoxelShape
optimize()
java.util.List<AxisAlignedBB>
toAabbs()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-