net.minecraft.util.shape

public final class VoxelShapes

net.minecraft.world.phys.shapes.Shapes
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
EPSILON
field_31880
MIN_SIZE
public static final double
BIG_EPSILON
BIG_EPSILON
field_31881
field_31881
private static final VoxelShape
BLOCK
BLOCK
field_1385
FULL_CUBE
private static final Vec3d
BLOCK_CENTER
BLOCK_CENTER
field_55842
BLOCK_CENTER
public static final VoxelShape
INFINITY
INFINITY
field_17669
UNBOUNDED
private static final VoxelShape
EMPTY
EMPTY
field_1384
EMPTY

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static VoxelShape
empty()
empty()
method_1073()
empty()
public static VoxelShape
block()
block()
method_1077()
fullCube()
public static VoxelShape
box(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
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)
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)
create(AABB aabb)
method_1078(class_238 arg0)
cuboid(Box box)
protected static int
findBits(double min, double max)
findBits(double min, double max)
method_1086(double arg0, double arg1)
findRequiredBitResolution(double min, double max)
protected static long
lcm(int first, int second)
lcm(int first, int second)
method_1079(int arg0, int arg1)
lcm(int a, int b)
public static VoxelShape
or(VoxelShape first, VoxelShape second)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
rotateHorizontalAxis(VoxelShape zAxis)
method_66494(class_265 arg0)
createHorizontalAxisShapeMap(VoxelShape shape)
public static Map<Direction$Axis, VoxelShape>
rotateHorizontalAxis(VoxelShape zAxis, Vec3 rotationCenter)
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)
rotateAllAxis(VoxelShape north)
method_66499(class_265 arg0)
createAxisShapeMap(VoxelShape shape)
public static Map<Direction$Axis, VoxelShape>
rotateAllAxis(VoxelShape north, Vec3 rotationCenter)
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)
rotateHorizontal(VoxelShape north)
method_66501(class_265 arg0)
createHorizontalFacingShapeMap(VoxelShape shape)
public static Map<Direction, VoxelShape>
rotateHorizontal(VoxelShape north, OctahedralGroup initial)
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)
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)
rotateAll(VoxelShape north)
method_66504(class_265 arg0)
createFacingShapeMap(VoxelShape shape)
public static Map<Direction, VoxelShape>
rotateAll(VoxelShape north, Vec3 rotationCenter)
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)
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)
rotateAttachFace(VoxelShape north)
method_66506(class_265 arg0)
createBlockFaceHorizontalFacingShapeMap(VoxelShape shape)
public static Map<BlockFace, Map<Direction, VoxelShape>>
rotateAttachFace(VoxelShape north, OctahedralGroup initial)
rotateAttachFace(VoxelShape north, OctahedralGroup initial)
method_76594(class_265 arg0, class_4990 arg1)
createBlockFaceHorizontalFacingShapeMap(VoxelShape shape, DirectionTransformation transformation)