Package net.minecraft.util.math.shapes
Class VoxelShapes
java.lang.Object
net.minecraft.util.math.shapes.VoxelShapes
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final VoxelShape
private static final VoxelShape
static final VoxelShape
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic VoxelShape
block()
static boolean
blockOccudes
(VoxelShape p_197875_0_, VoxelShape p_197875_1_, Direction p_197875_2_) static VoxelShape
box
(double p_197873_0_, double p_197873_2_, double p_197873_4_, double p_197873_6_, double p_197873_8_, double p_197873_10_) static double
collide
(Direction.Axis p_212437_0_, AxisAlignedBB p_212437_1_, Stream<VoxelShape> p_212437_2_, double p_212437_3_) static double
collide
(Direction.Axis p_216383_0_, AxisAlignedBB p_216383_1_, IWorldReader p_216383_2_, double p_216383_3_, ISelectionContext p_216383_5_, Stream<VoxelShape> p_216383_6_) private static double
collide
(AxisAlignedBB p_216386_0_, IWorldReader p_216386_1_, double p_216386_2_, ISelectionContext p_216386_4_, AxisRotation p_216386_5_, Stream<VoxelShape> p_216386_6_) static VoxelShape
create
(AxisAlignedBB p_197881_0_) protected static IDoubleListMerger
createIndexMerger
(int p_199410_0_, it.unimi.dsi.fastutil.doubles.DoubleList p_199410_1_, it.unimi.dsi.fastutil.doubles.DoubleList p_199410_2_, boolean p_199410_3_, boolean p_199410_4_) static VoxelShape
empty()
static boolean
faceShapeOccludes
(VoxelShape p_223416_0_, VoxelShape p_223416_1_) private static int
findBits
(double p_197885_0_, double p_197885_2_) static VoxelShape
getFaceShape
(VoxelShape p_216387_0_, Direction p_216387_1_) static VoxelShape
join
(VoxelShape p_197878_0_, VoxelShape p_197878_1_, IBooleanFunction p_197878_2_) private static boolean
joinIsNotEmpty
(IDoubleListMerger p_197874_0_, IDoubleListMerger p_197874_1_, IDoubleListMerger p_197874_2_, VoxelShapePart p_197874_3_, VoxelShapePart p_197874_4_, IBooleanFunction p_197874_5_) static boolean
joinIsNotEmpty
(VoxelShape p_197879_0_, VoxelShape p_197879_1_, IBooleanFunction p_197879_2_) static VoxelShape
joinUnoptimized
(VoxelShape p_197882_0_, VoxelShape p_197882_1_, IBooleanFunction p_197882_2_) private static int
lastC
(double p_216385_0_, double p_216385_2_, double p_216385_4_) protected static long
lcm
(int p_197877_0_, int p_197877_1_) static boolean
mergedFaceOccludes
(VoxelShape p_204642_0_, VoxelShape p_204642_1_, Direction p_204642_2_) static VoxelShape
or
(VoxelShape p_197872_0_, VoxelShape p_197872_1_) static VoxelShape
or
(VoxelShape p_216384_0_, VoxelShape... p_216384_1_)
-
Field Details
-
BLOCK
-
INFINITY
-
EMPTY
-
-
Constructor Details
-
VoxelShapes
public VoxelShapes()
-
-
Method Details
-
empty
-
block
-
box
public static VoxelShape box(double p_197873_0_, double p_197873_2_, double p_197873_4_, double p_197873_6_, double p_197873_8_, double p_197873_10_) -
create
-
findBits
private static int findBits(double p_197885_0_, double p_197885_2_) -
lcm
protected static long lcm(int p_197877_0_, int p_197877_1_) -
or
-
or
-
join
public static VoxelShape join(VoxelShape p_197878_0_, VoxelShape p_197878_1_, IBooleanFunction p_197878_2_) -
joinUnoptimized
public static VoxelShape joinUnoptimized(VoxelShape p_197882_0_, VoxelShape p_197882_1_, IBooleanFunction p_197882_2_) -
joinIsNotEmpty
public static boolean joinIsNotEmpty(VoxelShape p_197879_0_, VoxelShape p_197879_1_, IBooleanFunction p_197879_2_) -
joinIsNotEmpty
private static boolean joinIsNotEmpty(IDoubleListMerger p_197874_0_, IDoubleListMerger p_197874_1_, IDoubleListMerger p_197874_2_, VoxelShapePart p_197874_3_, VoxelShapePart p_197874_4_, IBooleanFunction p_197874_5_) -
collide
public static double collide(Direction.Axis p_212437_0_, AxisAlignedBB p_212437_1_, Stream<VoxelShape> p_212437_2_, double p_212437_3_) -
collide
public static double collide(Direction.Axis p_216383_0_, AxisAlignedBB p_216383_1_, IWorldReader p_216383_2_, double p_216383_3_, ISelectionContext p_216383_5_, Stream<VoxelShape> p_216383_6_) -
collide
private static double collide(AxisAlignedBB p_216386_0_, IWorldReader p_216386_1_, double p_216386_2_, ISelectionContext p_216386_4_, AxisRotation p_216386_5_, Stream<VoxelShape> p_216386_6_) -
lastC
private static int lastC(double p_216385_0_, double p_216385_2_, double p_216385_4_) -
blockOccudes
public static boolean blockOccudes(VoxelShape p_197875_0_, VoxelShape p_197875_1_, Direction p_197875_2_) -
getFaceShape
-
mergedFaceOccludes
public static boolean mergedFaceOccludes(VoxelShape p_204642_0_, VoxelShape p_204642_1_, Direction p_204642_2_) -
faceShapeOccludes
-
createIndexMerger
protected static IDoubleListMerger createIndexMerger(int p_199410_0_, it.unimi.dsi.fastutil.doubles.DoubleList p_199410_1_, it.unimi.dsi.fastutil.doubles.DoubleList p_199410_2_, boolean p_199410_3_, boolean p_199410_4_)
-