Package net.minecraft.util.shape
Class VoxelShapes
java.lang.Object
net.minecraft.util.shape.VoxelShapes
public final class VoxelShapes extends Object
- Mappings:
Namespace Name official djk
intermediary net/minecraft/class_259
named net/minecraft/util/shape/VoxelShapes
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
VoxelShapes.BoxConsumer
-
Field Summary
Fields Modifier and Type Field Description private static VoxelShape
EMPTY
private static VoxelShape
FULL_CUBE
static VoxelShape
UNBOUNDED
-
Constructor Summary
Constructors Constructor Description VoxelShapes()
-
Method Summary
Modifier and Type Method Description static boolean
adjacentSidesCoverSquare(VoxelShape one, VoxelShape two, Direction direction)
static double
calculateMaxOffset(Direction.Axis axis, Box box, Stream<VoxelShape> shapes, double maxDist)
private static double
calculatePushVelocity(Box box, WorldView world, double initial, ShapeContext context, AxisCycleDirection direction, Stream<VoxelShape> shapes)
static double
calculatePushVelocity(Direction.Axis axis, Box box, WorldView world, double initial, ShapeContext context, Stream<VoxelShape> shapes)
private static int
clamp(double value, double min, double max)
static VoxelShape
combine(VoxelShape one, VoxelShape two, BooleanBiFunction function)
static VoxelShape
combineAndSimplify(VoxelShape first, VoxelShape second, BooleanBiFunction function)
protected static PairList
createListPair(int size, DoubleList first, DoubleList second, boolean includeFirst, boolean includeSecond)
static VoxelShape
cuboid(double xMin, double yMin, double zMin, double xMax, double yMax, double zMax)
static VoxelShape
cuboid(Box box)
static VoxelShape
cuboidUnchecked(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
static VoxelShape
empty()
static VoxelShape
extrudeFace(VoxelShape shape, Direction direction)
protected static int
findRequiredBitResolution(double min, double max)
static VoxelShape
fullCube()
static boolean
isSideCovered(VoxelShape shape, VoxelShape neighbor, Direction direction)
protected static long
lcm(int a, int b)
private static boolean
matchesAnywhere(PairList mergedX, PairList mergedY, PairList mergedZ, VoxelSet shape1, VoxelSet shape2, BooleanBiFunction predicate)
static boolean
matchesAnywhere(VoxelShape shape1, VoxelShape shape2, BooleanBiFunction predicate)
static VoxelShape
union(VoxelShape first, VoxelShape second)
static VoxelShape
union(VoxelShape first, VoxelShape[] others)
static boolean
unionCoversFullCube(VoxelShape one, VoxelShape two)
-
Field Details
-
FULL_CUBE
- Mappings:
Namespace Name Mixin selector official b
Ldjk;b:Ldjn;
intermediary field_1385
Lnet/minecraft/class_259;field_1385:Lnet/minecraft/class_265;
named FULL_CUBE
Lnet/minecraft/util/shape/VoxelShapes;FULL_CUBE:Lnet/minecraft/util/shape/VoxelShape;
-
UNBOUNDED
- Mappings:
Namespace Name Mixin selector official a
Ldjk;a:Ldjn;
intermediary field_17669
Lnet/minecraft/class_259;field_17669:Lnet/minecraft/class_265;
named UNBOUNDED
Lnet/minecraft/util/shape/VoxelShapes;UNBOUNDED:Lnet/minecraft/util/shape/VoxelShape;
-
EMPTY
- Mappings:
Namespace Name Mixin selector official c
Ldjk;c:Ldjn;
intermediary field_1384
Lnet/minecraft/class_259;field_1384:Lnet/minecraft/class_265;
named EMPTY
Lnet/minecraft/util/shape/VoxelShapes;EMPTY:Lnet/minecraft/util/shape/VoxelShape;
-
-
Constructor Details
-
VoxelShapes
public VoxelShapes()
-
-
Method Details
-
empty
- Mappings:
Namespace Name Mixin selector official a
Ldjk;a()Ldjn;
intermediary method_1073
Lnet/minecraft/class_259;method_1073()Lnet/minecraft/class_265;
named empty
Lnet/minecraft/util/shape/VoxelShapes;empty()Lnet/minecraft/util/shape/VoxelShape;
-
fullCube
- Mappings:
Namespace Name Mixin selector official b
Ldjk;b()Ldjn;
intermediary method_1077
Lnet/minecraft/class_259;method_1077()Lnet/minecraft/class_265;
named fullCube
Lnet/minecraft/util/shape/VoxelShapes;fullCube()Lnet/minecraft/util/shape/VoxelShape;
-
cuboid
public static VoxelShape cuboid(double xMin, double yMin, double zMin, double xMax, double yMax, double zMax)- Mappings:
Namespace Name Mixin selector official a
Ldjk;a(DDDDDD)Ldjn;
intermediary method_1081
Lnet/minecraft/class_259;method_1081(DDDDDD)Lnet/minecraft/class_265;
named cuboid
Lnet/minecraft/util/shape/VoxelShapes;cuboid(DDDDDD)Lnet/minecraft/util/shape/VoxelShape;
-
cuboidUnchecked
public static VoxelShape cuboidUnchecked(double minX, double minY, double minZ, double maxX, double maxY, double maxZ)- Mappings:
Namespace Name Mixin selector official b
Ldjk;b(DDDDDD)Ldjn;
intermediary method_31943
Lnet/minecraft/class_259;method_31943(DDDDDD)Lnet/minecraft/class_265;
named cuboidUnchecked
Lnet/minecraft/util/shape/VoxelShapes;cuboidUnchecked(DDDDDD)Lnet/minecraft/util/shape/VoxelShape;
-
cuboid
- Mappings:
Namespace Name Mixin selector official a
Ldjk;a(Ldip;)Ldjn;
intermediary method_1078
Lnet/minecraft/class_259;method_1078(Lnet/minecraft/class_238;)Lnet/minecraft/class_265;
named cuboid
Lnet/minecraft/util/shape/VoxelShapes;cuboid(Lnet/minecraft/util/math/Box;)Lnet/minecraft/util/shape/VoxelShape;
-
findRequiredBitResolution
protected static int findRequiredBitResolution(double min, double max)- Mappings:
Namespace Name Mixin selector official a
Ldjk;a(DD)I
intermediary method_1086
Lnet/minecraft/class_259;method_1086(DD)I
named findRequiredBitResolution
Lnet/minecraft/util/shape/VoxelShapes;findRequiredBitResolution(DD)I
-
lcm
protected static long lcm(int a, int b)- Mappings:
Namespace Name Mixin selector official a
Ldjk;a(II)J
intermediary method_1079
Lnet/minecraft/class_259;method_1079(II)J
named lcm
Lnet/minecraft/util/shape/VoxelShapes;lcm(II)J
-
union
- Mappings:
Namespace Name Mixin selector official a
Ldjk;a(Ldjn;Ldjn;)Ldjn;
intermediary method_1084
Lnet/minecraft/class_259;method_1084(Lnet/minecraft/class_265;Lnet/minecraft/class_265;)Lnet/minecraft/class_265;
named union
Lnet/minecraft/util/shape/VoxelShapes;union(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;)Lnet/minecraft/util/shape/VoxelShape;
-
union
- Mappings:
Namespace Name Mixin selector official a
Ldjk;a(Ldjn;[Ldjn;)Ldjn;
intermediary method_17786
Lnet/minecraft/class_259;method_17786(Lnet/minecraft/class_265;[Lnet/minecraft/class_265;)Lnet/minecraft/class_265;
named union
Lnet/minecraft/util/shape/VoxelShapes;union(Lnet/minecraft/util/shape/VoxelShape;[Lnet/minecraft/util/shape/VoxelShape;)Lnet/minecraft/util/shape/VoxelShape;
-
combineAndSimplify
public static VoxelShape combineAndSimplify(VoxelShape first, VoxelShape second, BooleanBiFunction function)- Mappings:
Namespace Name Mixin selector official a
Ldjk;a(Ldjn;Ldjn;Ldiy;)Ldjn;
intermediary method_1072
Lnet/minecraft/class_259;method_1072(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_247;)Lnet/minecraft/class_265;
named combineAndSimplify
Lnet/minecraft/util/shape/VoxelShapes;combineAndSimplify(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/function/BooleanBiFunction;)Lnet/minecraft/util/shape/VoxelShape;
-
combine
- Mappings:
Namespace Name Mixin selector official b
Ldjk;b(Ldjn;Ldjn;Ldiy;)Ldjn;
intermediary method_1082
Lnet/minecraft/class_259;method_1082(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_247;)Lnet/minecraft/class_265;
named combine
Lnet/minecraft/util/shape/VoxelShapes;combine(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/function/BooleanBiFunction;)Lnet/minecraft/util/shape/VoxelShape;
-
matchesAnywhere
public static boolean matchesAnywhere(VoxelShape shape1, VoxelShape shape2, BooleanBiFunction predicate)- Mappings:
Namespace Name Mixin selector official c
Ldjk;c(Ldjn;Ldjn;Ldiy;)Z
intermediary method_1074
Lnet/minecraft/class_259;method_1074(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_247;)Z
named matchesAnywhere
Lnet/minecraft/util/shape/VoxelShapes;matchesAnywhere(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/function/BooleanBiFunction;)Z
-
matchesAnywhere
private static boolean matchesAnywhere(PairList mergedX, PairList mergedY, PairList mergedZ, VoxelSet shape1, VoxelSet shape2, BooleanBiFunction predicate)- Mappings:
Namespace Name Mixin selector official a
Ldjk;a(Ldjg;Ldjg;Ldjg;Ldjd;Ldjd;Ldiy;)Z
intermediary method_1071
Lnet/minecraft/class_259;method_1071(Lnet/minecraft/class_255;Lnet/minecraft/class_255;Lnet/minecraft/class_255;Lnet/minecraft/class_251;Lnet/minecraft/class_251;Lnet/minecraft/class_247;)Z
named matchesAnywhere
Lnet/minecraft/util/shape/VoxelShapes;matchesAnywhere(Lnet/minecraft/util/shape/PairList;Lnet/minecraft/util/shape/PairList;Lnet/minecraft/util/shape/PairList;Lnet/minecraft/util/shape/VoxelSet;Lnet/minecraft/util/shape/VoxelSet;Lnet/minecraft/util/function/BooleanBiFunction;)Z
-
calculateMaxOffset
public static double calculateMaxOffset(Direction.Axis axis, Box box, Stream<VoxelShape> shapes, double maxDist)- Mappings:
Namespace Name Mixin selector official a
Ldjk;a(Lgc$a;Ldip;Ljava/util/stream/Stream;D)D
intermediary method_1085
Lnet/minecraft/class_259;method_1085(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_238;Ljava/util/stream/Stream;D)D
named calculateMaxOffset
Lnet/minecraft/util/shape/VoxelShapes;calculateMaxOffset(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/util/math/Box;Ljava/util/stream/Stream;D)D
-
calculatePushVelocity
public static double calculatePushVelocity(Direction.Axis axis, Box box, WorldView world, double initial, ShapeContext context, Stream<VoxelShape> shapes)- Mappings:
Namespace Name Mixin selector official a
Ldjk;a(Lgc$a;Ldip;Lbty;DLdiz;Ljava/util/stream/Stream;)D
intermediary method_17945
Lnet/minecraft/class_259;method_17945(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_238;Lnet/minecraft/class_4538;DLnet/minecraft/class_3726;Ljava/util/stream/Stream;)D
named calculatePushVelocity
Lnet/minecraft/util/shape/VoxelShapes;calculatePushVelocity(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/util/math/Box;Lnet/minecraft/world/WorldView;DLnet/minecraft/block/ShapeContext;Ljava/util/stream/Stream;)D
-
calculatePushVelocity
private static double calculatePushVelocity(Box box, WorldView world, double initial, ShapeContext context, AxisCycleDirection direction, Stream<VoxelShape> shapes)- Mappings:
Namespace Name Mixin selector official a
Ldjk;a(Ldip;Lbty;DLdiz;Lfv;Ljava/util/stream/Stream;)D
intermediary method_17944
Lnet/minecraft/class_259;method_17944(Lnet/minecraft/class_238;Lnet/minecraft/class_4538;DLnet/minecraft/class_3726;Lnet/minecraft/class_2335;Ljava/util/stream/Stream;)D
named calculatePushVelocity
Lnet/minecraft/util/shape/VoxelShapes;calculatePushVelocity(Lnet/minecraft/util/math/Box;Lnet/minecraft/world/WorldView;DLnet/minecraft/block/ShapeContext;Lnet/minecraft/util/math/AxisCycleDirection;Ljava/util/stream/Stream;)D
-
clamp
private static int clamp(double value, double min, double max)- Mappings:
Namespace Name Mixin selector official a
Ldjk;a(DDD)I
intermediary method_17943
Lnet/minecraft/class_259;method_17943(DDD)I
named clamp
Lnet/minecraft/util/shape/VoxelShapes;clamp(DDD)I
-
isSideCovered
@Environment(CLIENT) public static boolean isSideCovered(VoxelShape shape, VoxelShape neighbor, Direction direction)- Mappings:
Namespace Name Mixin selector official a
Ldjk;a(Ldjn;Ldjn;Lgc;)Z
intermediary method_1083
Lnet/minecraft/class_259;method_1083(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_2350;)Z
named isSideCovered
Lnet/minecraft/util/shape/VoxelShapes;isSideCovered(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Direction;)Z
-
extrudeFace
- Mappings:
Namespace Name Mixin selector official a
Ldjk;a(Ldjn;Lgc;)Ldjn;
intermediary method_16344
Lnet/minecraft/class_259;method_16344(Lnet/minecraft/class_265;Lnet/minecraft/class_2350;)Lnet/minecraft/class_265;
named extrudeFace
Lnet/minecraft/util/shape/VoxelShapes;extrudeFace(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/shape/VoxelShape;
-
adjacentSidesCoverSquare
public static boolean adjacentSidesCoverSquare(VoxelShape one, VoxelShape two, Direction direction)- Mappings:
Namespace Name Mixin selector official b
Ldjk;b(Ldjn;Ldjn;Lgc;)Z
intermediary method_1080
Lnet/minecraft/class_259;method_1080(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_2350;)Z
named adjacentSidesCoverSquare
Lnet/minecraft/util/shape/VoxelShapes;adjacentSidesCoverSquare(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Direction;)Z
-
unionCoversFullCube
- Mappings:
Namespace Name Mixin selector official b
Ldjk;b(Ldjn;Ldjn;)Z
intermediary method_20713
Lnet/minecraft/class_259;method_20713(Lnet/minecraft/class_265;Lnet/minecraft/class_265;)Z
named unionCoversFullCube
Lnet/minecraft/util/shape/VoxelShapes;unionCoversFullCube(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;)Z
-
createListPair
protected static PairList createListPair(int size, DoubleList first, DoubleList second, boolean includeFirst, boolean includeSecond)- Mappings:
Namespace Name Mixin selector official a
Ldjk;a(ILit/unimi/dsi/fastutil/doubles/DoubleList;Lit/unimi/dsi/fastutil/doubles/DoubleList;ZZ)Ldjg;
intermediary method_1069
Lnet/minecraft/class_259;method_1069(ILit/unimi/dsi/fastutil/doubles/DoubleList;Lit/unimi/dsi/fastutil/doubles/DoubleList;ZZ)Lnet/minecraft/class_255;
named createListPair
Lnet/minecraft/util/shape/VoxelShapes;createListPair(ILit/unimi/dsi/fastutil/doubles/DoubleList;Lit/unimi/dsi/fastutil/doubles/DoubleList;ZZ)Lnet/minecraft/util/shape/PairList;
-