net.minecraft.util.shape

public final class VoxelShapes

net.minecraft.world.phys.shapes.Shapes
net.minecraft.class_259
net.minecraft.util.shape.VoxelShapes

Field summary

Modifier and TypeField
public static final double
EPSILON
field_31880
MIN_SIZE
public static final double
BIG_EPSILON
field_31881
field_31881
private static final VoxelShape
BLOCK
field_1385
FULL_CUBE
private static final Vec3d
BLOCK_CENTER
field_55842
BLOCK_CENTER
public static final VoxelShape
INFINITY
field_17669
UNBOUNDED
private static final VoxelShape
EMPTY
field_1384
EMPTY

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static VoxelShape
empty()
method_1073()
empty()
public static VoxelShape
block()
method_1077()
fullCube()
public static VoxelShape
box(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
method_1081(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
cuboid(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
public static VoxelShape
create(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
method_31943(double arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
cuboidUnchecked(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
public static VoxelShape
create(AABB aabb)
method_1078(class_238 arg0)
cuboid(Box box)
protected static int
findBits(double min, double max)
method_1086(double arg0, double arg1)
findRequiredBitResolution(double min, double max)
protected static long
lcm(int first, int second)
method_1079(int arg0, int arg1)
lcm(int a, int b)
public static VoxelShape
or(VoxelShape first, VoxelShape second)
method_1084(class_265 arg0, class_265 arg1)
union(VoxelShape first, VoxelShape second)
public static VoxelShape
or(VoxelShape first, VoxelShape... tail)
method_17786(class_265 arg0, class_265... arg1)
union(VoxelShape first, VoxelShape... others)
public static VoxelShape
join(VoxelShape first, VoxelShape second, BooleanOp op)
method_1072(class_265 arg0, class_265 arg1, class_247 arg2)
combineAndSimplify(VoxelShape first, VoxelShape second, BooleanBiFunction function)
public static VoxelShape
joinUnoptimized(VoxelShape first, VoxelShape second, BooleanOp op)
method_1082(class_265 arg0, class_265 arg1, class_247 arg2)
combine(VoxelShape one, VoxelShape two, BooleanBiFunction function)
public static boolean
joinIsNotEmpty(VoxelShape first, VoxelShape second, BooleanOp op)
method_1074(class_265 arg0, class_265 arg1, class_247 arg2)
matchesAnywhere(VoxelShape shape1, VoxelShape shape2, BooleanBiFunction predicate)
private static boolean
joinIsNotEmpty(IndexMerger xMerger, IndexMerger yMerger, IndexMerger zMerger, DiscreteVoxelShape first, DiscreteVoxelShape second, BooleanOp op)
method_1071(class_255 arg0, class_255 arg1, class_255 arg2, class_251 arg3, class_251 arg4, class_247 arg5)
matchesAnywhere(PairList mergedX, PairList mergedY, PairList mergedZ, VoxelSet shape1, VoxelSet shape2, BooleanBiFunction predicate)
public static double
collide(Direction$Axis axis, AABB moving, Iterable<VoxelShape> shapes, double distance)
method_1085(class_2350$class_2351 arg0, class_238 arg1, Iterable<class_265> arg2, double arg3)
calculateMaxOffset(Direction$Axis axis, Box box, Iterable<VoxelShape> shapes, double maxDist)
public static boolean
blockOccludes(VoxelShape shape, VoxelShape occluder, Direction direction)
method_1083(class_265 arg0, class_265 arg1, class_2350 arg2)
isSideCovered(VoxelShape shape, VoxelShape neighbor, Direction direction)
public static boolean
mergedFaceOccludes(VoxelShape shape, VoxelShape occluder, Direction direction)
method_1080(class_265 arg0, class_265 arg1, class_2350 arg2)
adjacentSidesCoverSquare(VoxelShape one, VoxelShape two, Direction direction)
public static boolean
faceShapeOccludes(VoxelShape shape, VoxelShape occluder)
method_20713(class_265 arg0, class_265 arg1)
unionCoversFullCube(VoxelShape one, VoxelShape two)
protected static PairList
createIndexMerger(int cost, it.unimi.dsi.fastutil.doubles.DoubleList first, it.unimi.dsi.fastutil.doubles.DoubleList second, boolean firstOnlyMatters, boolean secondOnlyMatters)
method_1069(int arg0, it.unimi.dsi.fastutil.doubles.DoubleList arg1, it.unimi.dsi.fastutil.doubles.DoubleList arg2, boolean arg3, boolean arg4)
createListPair(int size, it.unimi.dsi.fastutil.doubles.DoubleList first, it.unimi.dsi.fastutil.doubles.DoubleList second, boolean includeFirst, boolean includeSecond)
public static VoxelShape
rotate(VoxelShape shape, OctahedralGroup rotation)
method_66496(class_265 arg0, class_4990 arg1)
transform(VoxelShape shape, DirectionTransformation transformation)
public static VoxelShape
rotate(VoxelShape shape, OctahedralGroup rotation, Vec3 rotationPoint)
method_66497(class_265 arg0, class_4990 arg1, class_243 arg2)
transform(VoxelShape shape, DirectionTransformation transformation, Vec3d anchor)
static it.unimi.dsi.fastutil.doubles.DoubleList
flipAxisIfNeeded(it.unimi.dsi.fastutil.doubles.DoubleList newAxis, boolean flip, double newRelative, double oldRelative)
method_66498(it.unimi.dsi.fastutil.doubles.DoubleList arg0, boolean arg1, double arg2, double arg3)
transform(it.unimi.dsi.fastutil.doubles.DoubleList pointPositions, boolean flip, double component, double anchor)
public static boolean
equal(VoxelShape first, VoxelShape second)
method_66503(class_265 arg0, class_265 arg1)
equal(VoxelShape shape1, VoxelShape shape2)
public static Map<Direction$Axis, VoxelShape>
rotateHorizontalAxis(VoxelShape zAxis)
method_66494(class_265 arg0)
createHorizontalAxisShapeMap(VoxelShape shape)
public static Map<Direction$Axis, VoxelShape>
rotateHorizontalAxis(VoxelShape zAxis, Vec3 rotationCenter)
method_66495(class_265 arg0, class_243 arg1)
createHorizontalAxisShapeMap(VoxelShape shape, Vec3d anchor)
public static Map<Direction$Axis, VoxelShape>
rotateAllAxis(VoxelShape north)
method_66499(class_265 arg0)
createAxisShapeMap(VoxelShape shape)
public static Map<Direction$Axis, VoxelShape>
rotateAllAxis(VoxelShape north, Vec3 rotationCenter)
method_66500(class_265 arg0, class_243 arg1)
createAxisShapeMap(VoxelShape shape, Vec3d anchor)
public static Map<Direction, VoxelShape>
rotateHorizontal(VoxelShape north)
method_66501(class_265 arg0)
createHorizontalFacingShapeMap(VoxelShape shape)
public static Map<Direction, VoxelShape>
rotateHorizontal(VoxelShape north, OctahedralGroup initial)
method_76593(class_265 arg0, class_4990 arg1)
createHorizontalFacingShapeMap(VoxelShape shape, DirectionTransformation transformation)
public static Map<Direction, VoxelShape>
rotateHorizontal(VoxelShape north, OctahedralGroup initial, Vec3 rotationCenter)
method_66502(class_265 arg0, class_4990 arg1, class_243 arg2)
createHorizontalFacingShapeMap(VoxelShape shape, DirectionTransformation transformation, Vec3d anchor)
public static Map<Direction, VoxelShape>
rotateAll(VoxelShape north)
method_66504(class_265 arg0)
createFacingShapeMap(VoxelShape shape)
public static Map<Direction, VoxelShape>
rotateAll(VoxelShape north, Vec3 rotationCenter)
method_76595(class_265 arg0, class_243 arg1)
createFacingShapeMap(VoxelShape shape, Vec3d anchor)
public static Map<Direction, VoxelShape>
rotateAll(VoxelShape north, OctahedralGroup initial, Vec3 rotationCenter)
method_66505(class_265 arg0, class_4990 arg1, class_243 arg2)
createFacingShapeMap(VoxelShape shape, DirectionTransformation transformation, Vec3d anchor)
public static Map<BlockFace, Map<Direction, VoxelShape>>
rotateAttachFace(VoxelShape north)
method_66506(class_265 arg0)
createBlockFaceHorizontalFacingShapeMap(VoxelShape shape)
public static Map<BlockFace, Map<Direction, VoxelShape>>
rotateAttachFace(VoxelShape north, OctahedralGroup initial)
method_76594(class_265 arg0, class_4990 arg1)
createBlockFaceHorizontalFacingShapeMap(VoxelShape shape, DirectionTransformation transformation)
private static boolean
lambda$joinIsNotEmpty$0(IndexMerger arg0, IndexMerger arg1, BooleanOp arg2, DiscreteVoxelShape arg3, DiscreteVoxelShape arg4, int arg5, int arg6, int arg7)
method_1075(class_255 arg0, class_255 arg1, class_247 arg2, class_251 arg3, class_251 arg4, int arg5, int arg6, int arg7)
method_1075(PairList arg0, PairList arg1, BooleanBiFunction arg2, VoxelSet arg3, VoxelSet arg4, int x1, int x2, int index1)
private static boolean
lambda$joinIsNotEmpty$1(IndexMerger arg0, BooleanOp arg1, DiscreteVoxelShape arg2, int arg3, DiscreteVoxelShape arg4, int arg5, int arg6, int arg7, int arg8)
method_1076(class_255 arg0, class_247 arg1, class_251 arg2, int arg3, class_251 arg4, int arg5, int arg6, int arg7, int arg8)
method_1076(PairList arg0, BooleanBiFunction arg1, VoxelSet arg2, int arg3, VoxelSet arg4, int arg5, int y1, int y2, int index2)
private static boolean
lambda$joinIsNotEmpty$2(BooleanOp arg0, DiscreteVoxelShape arg1, int arg2, int arg3, DiscreteVoxelShape arg4, int arg5, int arg6, int arg7, int arg8, int arg9)
method_1070(class_247 arg0, class_251 arg1, int arg2, int arg3, class_251 arg4, int arg5, int arg6, int arg7, int arg8, int arg9)
method_1070(BooleanBiFunction arg0, VoxelSet arg1, int arg2, int arg3, VoxelSet arg4, int arg5, int arg6, int z1, int z2, int index3)
private static SimpleVoxelShape
lambda$static$0()
method_1087()
method_1087()