public final class VoxelShapes
extends java.lang.Object
修飾子とタイプ | クラスと説明 |
---|---|
static interface |
VoxelShapes.ILineConsumer |
修飾子とタイプ | フィールドと説明 |
---|---|
static VoxelShape |
INFINITY |
コンストラクタと説明 |
---|
VoxelShapes() |
修飾子とタイプ | メソッドと説明 |
---|---|
static VoxelShape |
combine(VoxelShape shape1,
VoxelShape shape2,
IBooleanFunction function) |
static VoxelShape |
combineAndSimplify(VoxelShape shape1,
VoxelShape shape2,
IBooleanFunction function) |
static boolean |
compare(VoxelShape shape1,
VoxelShape shape2,
IBooleanFunction function) |
static VoxelShape |
create(AxisAlignedBB aabb) |
static VoxelShape |
create(double x1,
double y1,
double z1,
double x2,
double y2,
double z2) |
static boolean |
doAdjacentCubeSidesFillSquare(VoxelShape shape,
VoxelShape adjacentShape,
Direction side) |
static VoxelShape |
empty() |
static boolean |
faceShapeCovers(VoxelShape voxelShape1,
VoxelShape voxelShape2) |
static VoxelShape |
fullCube() |
static double |
getAllowedOffset(Direction.Axis movementAxis,
AxisAlignedBB collisionBox,
IWorldReader worldReader,
double desiredOffset,
ISelectionContext selectionContext,
java.util.stream.Stream<VoxelShape> possibleHits) |
static double |
getAllowedOffset(Direction.Axis movementAxis,
AxisAlignedBB collisionBox,
java.util.stream.Stream<VoxelShape> possibleHits,
double desiredOffset) |
static VoxelShape |
getFaceShape(VoxelShape voxelShapeIn,
Direction directionIn) |
static boolean |
isCubeSideCovered(VoxelShape shape,
VoxelShape adjacentShape,
Direction side) |
protected static long |
lcm(int aa,
int bb) |
protected static net.minecraft.util.math.shapes.IDoubleListMerger |
makeListMerger(int p_199410_0_,
it.unimi.dsi.fastutil.doubles.DoubleList list1,
it.unimi.dsi.fastutil.doubles.DoubleList list2,
boolean p_199410_3_,
boolean p_199410_4_) |
static VoxelShape |
or(VoxelShape p_216384_0_,
VoxelShape... p_216384_1_) |
static VoxelShape |
or(VoxelShape shape1,
VoxelShape shape2) |
public static final VoxelShape INFINITY
public static VoxelShape empty()
public static VoxelShape fullCube()
public static VoxelShape create(double x1, double y1, double z1, double x2, double y2, double z2)
public static VoxelShape create(AxisAlignedBB aabb)
protected static long lcm(int aa, int bb)
public static VoxelShape or(VoxelShape shape1, VoxelShape shape2)
public static VoxelShape or(VoxelShape p_216384_0_, VoxelShape... p_216384_1_)
public static VoxelShape combineAndSimplify(VoxelShape shape1, VoxelShape shape2, IBooleanFunction function)
public static VoxelShape combine(VoxelShape shape1, VoxelShape shape2, IBooleanFunction function)
public static boolean compare(VoxelShape shape1, VoxelShape shape2, IBooleanFunction function)
public static double getAllowedOffset(Direction.Axis movementAxis, AxisAlignedBB collisionBox, java.util.stream.Stream<VoxelShape> possibleHits, double desiredOffset)
public static double getAllowedOffset(Direction.Axis movementAxis, AxisAlignedBB collisionBox, IWorldReader worldReader, double desiredOffset, ISelectionContext selectionContext, java.util.stream.Stream<VoxelShape> possibleHits)
public static boolean isCubeSideCovered(VoxelShape shape, VoxelShape adjacentShape, Direction side)
public static VoxelShape getFaceShape(VoxelShape voxelShapeIn, Direction directionIn)
public static boolean doAdjacentCubeSidesFillSquare(VoxelShape shape, VoxelShape adjacentShape, Direction side)
public static boolean faceShapeCovers(VoxelShape voxelShape1, VoxelShape voxelShape2)
protected static net.minecraft.util.math.shapes.IDoubleListMerger makeListMerger(int p_199410_0_, it.unimi.dsi.fastutil.doubles.DoubleList list1, it.unimi.dsi.fastutil.doubles.DoubleList list2, boolean p_199410_3_, boolean p_199410_4_)