Package net.minecraft.util.shape
Class VoxelShapes
java.lang.Object
net.minecraft.util.shape.VoxelShapes
- Mappings:
Namespace Name named net/minecraft/util/shape/VoxelShapes
intermediary net/minecraft/class_259
official ewj
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final VoxelShape
static final double
private static final VoxelShape
static final double
static final VoxelShape
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
adjacentSidesCoverSquare
(VoxelShape one, VoxelShape two, Direction direction) static double
calculateMaxOffset
(Direction.Axis axis, Box box, Iterable<VoxelShape> shapes, double maxDist) 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 minX, double minY, double minZ, double maxX, double maxY, double maxZ) static VoxelShape
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
-
MIN_SIZE
public static final double MIN_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_SIZE
Lnet/minecraft/util/shape/VoxelShapes;MIN_SIZE:D
intermediary field_31880
Lnet/minecraft/class_259;field_31880:D
official a
Lewj;a:D
-
field_31881
public static final double field_31881- See Also:
- Mappings:
Namespace Name Mixin selector named field_31881
Lnet/minecraft/util/shape/VoxelShapes;field_31881:D
intermediary field_31881
Lnet/minecraft/class_259;field_31881:D
official b
Lewj;b:D
-
FULL_CUBE
- Mappings:
Namespace Name Mixin selector named FULL_CUBE
Lnet/minecraft/util/shape/VoxelShapes;FULL_CUBE:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_1385
Lnet/minecraft/class_259;field_1385:Lnet/minecraft/class_265;
official d
Lewj;d:Lewm;
-
UNBOUNDED
- Mappings:
Namespace Name Mixin selector named UNBOUNDED
Lnet/minecraft/util/shape/VoxelShapes;UNBOUNDED:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_17669
Lnet/minecraft/class_259;field_17669:Lnet/minecraft/class_265;
official c
Lewj;c:Lewm;
-
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTY
Lnet/minecraft/util/shape/VoxelShapes;EMPTY:Lnet/minecraft/util/shape/VoxelShape;
intermediary field_1384
Lnet/minecraft/class_259;field_1384:Lnet/minecraft/class_265;
official e
Lewj;e:Lewm;
-
-
Constructor Details
-
VoxelShapes
public VoxelShapes()
-
-
Method Details
-
empty
- Mappings:
Namespace Name Mixin selector named empty
Lnet/minecraft/util/shape/VoxelShapes;empty()Lnet/minecraft/util/shape/VoxelShape;
intermediary method_1073
Lnet/minecraft/class_259;method_1073()Lnet/minecraft/class_265;
official a
Lewj;a()Lewm;
-
fullCube
- Mappings:
Namespace Name Mixin selector named fullCube
Lnet/minecraft/util/shape/VoxelShapes;fullCube()Lnet/minecraft/util/shape/VoxelShape;
intermediary method_1077
Lnet/minecraft/class_259;method_1077()Lnet/minecraft/class_265;
official b
Lewj;b()Lewm;
-
cuboid
public static VoxelShape cuboid(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) - Mappings:
Namespace Name Mixin selector named cuboid
Lnet/minecraft/util/shape/VoxelShapes;cuboid(DDDDDD)Lnet/minecraft/util/shape/VoxelShape;
intermediary method_1081
Lnet/minecraft/class_259;method_1081(DDDDDD)Lnet/minecraft/class_265;
official a
Lewj;a(DDDDDD)Lewm;
-
cuboidUnchecked
public static VoxelShape cuboidUnchecked(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) - Mappings:
Namespace Name Mixin selector named cuboidUnchecked
Lnet/minecraft/util/shape/VoxelShapes;cuboidUnchecked(DDDDDD)Lnet/minecraft/util/shape/VoxelShape;
intermediary method_31943
Lnet/minecraft/class_259;method_31943(DDDDDD)Lnet/minecraft/class_265;
official b
Lewj;b(DDDDDD)Lewm;
-
cuboid
- Mappings:
Namespace Name Mixin selector named cuboid
Lnet/minecraft/util/shape/VoxelShapes;cuboid(Lnet/minecraft/util/math/Box;)Lnet/minecraft/util/shape/VoxelShape;
intermediary method_1078
Lnet/minecraft/class_259;method_1078(Lnet/minecraft/class_238;)Lnet/minecraft/class_265;
official a
Lewj;a(Levo;)Lewm;
-
findRequiredBitResolution
protected static int findRequiredBitResolution(double min, double max) - Mappings:
Namespace Name Mixin selector named findRequiredBitResolution
Lnet/minecraft/util/shape/VoxelShapes;findRequiredBitResolution(DD)I
intermediary method_1086
Lnet/minecraft/class_259;method_1086(DD)I
official a
Lewj;a(DD)I
-
lcm
protected static long lcm(int a, int b) - Mappings:
Namespace Name Mixin selector named lcm
Lnet/minecraft/util/shape/VoxelShapes;lcm(II)J
intermediary method_1079
Lnet/minecraft/class_259;method_1079(II)J
official a
Lewj;a(II)J
-
union
- Mappings:
Namespace Name Mixin selector named union
Lnet/minecraft/util/shape/VoxelShapes;union(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;)Lnet/minecraft/util/shape/VoxelShape;
intermediary method_1084
Lnet/minecraft/class_259;method_1084(Lnet/minecraft/class_265;Lnet/minecraft/class_265;)Lnet/minecraft/class_265;
official a
Lewj;a(Lewm;Lewm;)Lewm;
-
union
- Mappings:
Namespace Name Mixin selector named union
Lnet/minecraft/util/shape/VoxelShapes;union(Lnet/minecraft/util/shape/VoxelShape;[Lnet/minecraft/util/shape/VoxelShape;)Lnet/minecraft/util/shape/VoxelShape;
intermediary method_17786
Lnet/minecraft/class_259;method_17786(Lnet/minecraft/class_265;[Lnet/minecraft/class_265;)Lnet/minecraft/class_265;
official a
Lewj;a(Lewm;[Lewm;)Lewm;
-
combineAndSimplify
public static VoxelShape combineAndSimplify(VoxelShape first, VoxelShape second, BooleanBiFunction function) - Mappings:
Namespace Name Mixin selector 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;
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;
official a
Lewj;a(Lewm;Lewm;Levx;)Lewm;
-
combine
- Mappings:
Namespace Name Mixin selector 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;
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;
official b
Lewj;b(Lewm;Lewm;Levx;)Lewm;
-
matchesAnywhere
public static boolean matchesAnywhere(VoxelShape shape1, VoxelShape shape2, BooleanBiFunction predicate) - Mappings:
Namespace Name Mixin selector named matchesAnywhere
Lnet/minecraft/util/shape/VoxelShapes;matchesAnywhere(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/function/BooleanBiFunction;)Z
intermediary method_1074
Lnet/minecraft/class_259;method_1074(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_247;)Z
official c
Lewj;c(Lewm;Lewm;Levx;)Z
-
matchesAnywhere
private static boolean matchesAnywhere(PairList mergedX, PairList mergedY, PairList mergedZ, VoxelSet shape1, VoxelSet shape2, BooleanBiFunction predicate) - Mappings:
Namespace Name Mixin selector 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
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
official a
Lewj;a(Lewf;Lewf;Lewf;Lewc;Lewc;Levx;)Z
-
calculateMaxOffset
public static double calculateMaxOffset(Direction.Axis axis, Box box, Iterable<VoxelShape> shapes, double maxDist) - Mappings:
Namespace Name Mixin selector named calculateMaxOffset
Lnet/minecraft/util/shape/VoxelShapes;calculateMaxOffset(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/util/math/Box;Ljava/lang/Iterable;D)D
intermediary method_1085
Lnet/minecraft/class_259;method_1085(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_238;Ljava/lang/Iterable;D)D
official a
Lewj;a(Lje$a;Levo;Ljava/lang/Iterable;D)D
-
isSideCovered
- Mappings:
Namespace Name Mixin selector named isSideCovered
Lnet/minecraft/util/shape/VoxelShapes;isSideCovered(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Direction;)Z
intermediary method_1083
Lnet/minecraft/class_259;method_1083(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_2350;)Z
official a
Lewj;a(Lewm;Lewm;Lje;)Z
-
extrudeFace
- Mappings:
Namespace Name Mixin selector named extrudeFace
Lnet/minecraft/util/shape/VoxelShapes;extrudeFace(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/shape/VoxelShape;
intermediary method_16344
Lnet/minecraft/class_259;method_16344(Lnet/minecraft/class_265;Lnet/minecraft/class_2350;)Lnet/minecraft/class_265;
official a
Lewj;a(Lewm;Lje;)Lewm;
-
adjacentSidesCoverSquare
- Mappings:
Namespace Name Mixin selector named adjacentSidesCoverSquare
Lnet/minecraft/util/shape/VoxelShapes;adjacentSidesCoverSquare(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Direction;)Z
intermediary method_1080
Lnet/minecraft/class_259;method_1080(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_2350;)Z
official b
Lewj;b(Lewm;Lewm;Lje;)Z
-
unionCoversFullCube
- Mappings:
Namespace Name Mixin selector named unionCoversFullCube
Lnet/minecraft/util/shape/VoxelShapes;unionCoversFullCube(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;)Z
intermediary method_20713
Lnet/minecraft/class_259;method_20713(Lnet/minecraft/class_265;Lnet/minecraft/class_265;)Z
official b
Lewj;b(Lewm;Lewm;)Z
-
createListPair
protected static PairList createListPair(int size, DoubleList first, DoubleList second, boolean includeFirst, boolean includeSecond) - Mappings:
Namespace Name Mixin selector 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;
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;
official a
Lewj;a(ILit/unimi/dsi/fastutil/doubles/DoubleList;Lit/unimi/dsi/fastutil/doubles/DoubleList;ZZ)Lewf;
-