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 final double
private static final VoxelShape
private static final VoxelShape
static final double
static final 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_193136_, AABB p_193137_, Iterable<VoxelShape> p_193138_, double p_193139_) 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_) 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:
-
BIG_EPSILON
public static final double BIG_EPSILON- See Also:
-
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_193136_, AABB p_193137_, Iterable<VoxelShape> p_193138_, double p_193139_) -
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_)
-