Package net.minecraft.world.phys.shapes
Class Shapes
java.lang.Object
net.minecraft.world.phys.shapes.Shapes
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic double
private static VoxelShape
private static VoxelShape
static double
static VoxelShape
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic VoxelShape
block()
static boolean
blockOccudes(VoxelShape p_83118_, VoxelShape p_83119_, Direction p_83120_)
static VoxelShape
box(double p_83049_, double p_83050_, double p_83051_, double p_83052_, double p_83053_, double p_83054_)
static double
collide(Direction.Axis p_83135_, AABB p_83136_, Stream<VoxelShape> p_83137_, double p_83138_)
static double
collide(Direction.Axis p_83128_, AABB p_83129_, LevelReader p_83130_, double p_83131_, CollisionContext p_83132_, Stream<VoxelShape> p_83133_)
private static double
collide(AABB p_83067_, LevelReader p_83068_, double p_83069_, CollisionContext p_83070_, AxisCycle p_83071_, Stream<VoxelShape> p_83072_)
static VoxelShape
create(double p_166050_, double p_166051_, double p_166052_, double p_166053_, double p_166054_, double p_166055_)
static VoxelShape
protected static IndexMerger
createIndexMerger(int p_83059_, it.unimi.dsi.fastutil.doubles.DoubleList p_83060_, it.unimi.dsi.fastutil.doubles.DoubleList p_83061_, boolean p_83062_, boolean p_83063_)
static VoxelShape
empty()
static boolean
faceShapeOccludes(VoxelShape p_83146_, VoxelShape p_83147_)
protected static int
findBits(double p_83042_, double p_83043_)
static VoxelShape
getFaceShape(VoxelShape p_83122_, Direction p_83123_)
static VoxelShape
join(VoxelShape p_83114_, VoxelShape p_83115_, BooleanOp p_83116_)
private static boolean
joinIsNotEmpty(IndexMerger p_83104_, IndexMerger p_83105_, IndexMerger p_83106_, DiscreteVoxelShape p_83107_, DiscreteVoxelShape p_83108_, BooleanOp p_83109_)
static boolean
joinIsNotEmpty(VoxelShape p_83158_, VoxelShape p_83159_, BooleanOp p_83160_)
static VoxelShape
joinUnoptimized(VoxelShape p_83149_, VoxelShape p_83150_, BooleanOp p_83151_)
private static int
lastC(double p_83045_, double p_83046_, double p_83047_)
protected static long
lcm(int p_83056_, int p_83057_)
static boolean
mergedFaceOccludes(VoxelShape p_83153_, VoxelShape p_83154_, Direction p_83155_)
static VoxelShape
or(VoxelShape p_83111_, VoxelShape p_83112_)
static VoxelShape
or(VoxelShape p_83125_, VoxelShape... p_83126_)
-
Field Details
-
EPSILON
public static final double EPSILON- See Also:
- Constant Field Values
-
BIG_EPSILON
public static final double BIG_EPSILON- See Also:
- Constant Field Values
-
BLOCK
-
INFINITY
-
EMPTY
-
-
Constructor Details
-
Shapes
public Shapes()
-
-
Method Details
-
empty
-
block
-
box
public static VoxelShape box(double p_83049_, double p_83050_, double p_83051_, double p_83052_, double p_83053_, double p_83054_) -
create
public static VoxelShape create(double p_166050_, double p_166051_, double p_166052_, double p_166053_, double p_166054_, double p_166055_) -
create
-
findBits
protected static int findBits(double p_83042_, double p_83043_) -
lcm
protected static long lcm(int p_83056_, int p_83057_) -
or
-
or
-
join
-
joinUnoptimized
public static VoxelShape joinUnoptimized(VoxelShape p_83149_, VoxelShape p_83150_, BooleanOp p_83151_) -
joinIsNotEmpty
-
joinIsNotEmpty
private static boolean joinIsNotEmpty(IndexMerger p_83104_, IndexMerger p_83105_, IndexMerger p_83106_, DiscreteVoxelShape p_83107_, DiscreteVoxelShape p_83108_, BooleanOp p_83109_) -
collide
public static double collide(Direction.Axis p_83135_, AABB p_83136_, Stream<VoxelShape> p_83137_, double p_83138_) -
collide
public static double collide(Direction.Axis p_83128_, AABB p_83129_, LevelReader p_83130_, double p_83131_, CollisionContext p_83132_, Stream<VoxelShape> p_83133_) -
collide
private static double collide(AABB p_83067_, LevelReader p_83068_, double p_83069_, CollisionContext p_83070_, AxisCycle p_83071_, Stream<VoxelShape> p_83072_) -
lastC
private static int lastC(double p_83045_, double p_83046_, double p_83047_) -
blockOccudes
-
getFaceShape
-
mergedFaceOccludes
public static boolean mergedFaceOccludes(VoxelShape p_83153_, VoxelShape p_83154_, Direction p_83155_) -
faceShapeOccludes
-
createIndexMerger
protected static IndexMerger createIndexMerger(int p_83059_, it.unimi.dsi.fastutil.doubles.DoubleList p_83060_, it.unimi.dsi.fastutil.doubles.DoubleList p_83061_, boolean p_83062_, boolean p_83063_)
-