Package net.minecraft.util.math.shapes
Class VoxelShapes
- java.lang.Object
-
- net.minecraft.util.math.shapes.VoxelShapes
-
public final class VoxelShapes extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceVoxelShapes.ILineConsumer
-
Field Summary
Fields Modifier and Type Field Description private static VoxelShapeBLOCKprivate static VoxelShapeEMPTYstatic VoxelShapeINFINITY
-
Constructor Summary
Constructors Constructor Description VoxelShapes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VoxelShapeblock()static booleanblockOccudes(VoxelShape p_197875_0_, VoxelShape p_197875_1_, Direction p_197875_2_)static VoxelShapebox(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 doublecollide(Direction.Axis p_212437_0_, AxisAlignedBB p_212437_1_, java.util.stream.Stream<VoxelShape> p_212437_2_, double p_212437_3_)static doublecollide(Direction.Axis p_216383_0_, AxisAlignedBB p_216383_1_, IWorldReader p_216383_2_, double p_216383_3_, ISelectionContext p_216383_5_, java.util.stream.Stream<VoxelShape> p_216383_6_)private static doublecollide(AxisAlignedBB p_216386_0_, IWorldReader p_216386_1_, double p_216386_2_, ISelectionContext p_216386_4_, AxisRotation p_216386_5_, java.util.stream.Stream<VoxelShape> p_216386_6_)static VoxelShapecreate(AxisAlignedBB p_197881_0_)protected static IDoubleListMergercreateIndexMerger(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 VoxelShapeempty()static booleanfaceShapeOccludes(VoxelShape p_223416_0_, VoxelShape p_223416_1_)private static intfindBits(double p_197885_0_, double p_197885_2_)static VoxelShapegetFaceShape(VoxelShape p_216387_0_, Direction p_216387_1_)static VoxelShapejoin(VoxelShape p_197878_0_, VoxelShape p_197878_1_, IBooleanFunction p_197878_2_)private static booleanjoinIsNotEmpty(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 booleanjoinIsNotEmpty(VoxelShape p_197879_0_, VoxelShape p_197879_1_, IBooleanFunction p_197879_2_)static VoxelShapejoinUnoptimized(VoxelShape p_197882_0_, VoxelShape p_197882_1_, IBooleanFunction p_197882_2_)private static intlastC(double p_216385_0_, double p_216385_2_, double p_216385_4_)protected static longlcm(int p_197877_0_, int p_197877_1_)static booleanmergedFaceOccludes(VoxelShape p_204642_0_, VoxelShape p_204642_1_, Direction p_204642_2_)static VoxelShapeor(VoxelShape p_197872_0_, VoxelShape p_197872_1_)static VoxelShapeor(VoxelShape p_216384_0_, VoxelShape... p_216384_1_)
-
-
-
Field Detail
-
BLOCK
private static final VoxelShape BLOCK
-
INFINITY
public static final VoxelShape INFINITY
-
EMPTY
private static final VoxelShape EMPTY
-
-
Method Detail
-
empty
public static VoxelShape empty()
-
block
public static VoxelShape 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
public static VoxelShape create(AxisAlignedBB p_197881_0_)
-
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
public static VoxelShape or(VoxelShape p_197872_0_, VoxelShape p_197872_1_)
-
or
public static VoxelShape or(VoxelShape p_216384_0_, VoxelShape... p_216384_1_)
-
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_, java.util.stream.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_, java.util.stream.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_, java.util.stream.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
public static VoxelShape getFaceShape(VoxelShape p_216387_0_, Direction p_216387_1_)
-
mergedFaceOccludes
public static boolean mergedFaceOccludes(VoxelShape p_204642_0_, VoxelShape p_204642_1_, Direction p_204642_2_)
-
faceShapeOccludes
public static boolean faceShapeOccludes(VoxelShape p_223416_0_, VoxelShape p_223416_1_)
-
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_)
-
-