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 interface
VoxelShapes.ILineConsumer
-
Field Summary
Fields Modifier and Type Field Description private static VoxelShape
BLOCK
private static VoxelShape
EMPTY
static VoxelShape
INFINITY
-
Constructor Summary
Constructors Constructor Description VoxelShapes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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_, java.util.stream.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_, java.util.stream.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_, java.util.stream.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 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_)
-
-