Package net.minecraft.util.shape
Class VoxelShapes
java.lang.Object
net.minecraft.util.shape.VoxelShapes
- Mappings:
- Namespace - Name - official - eey- intermediary - net/minecraft/class_259- named - net/minecraft/util/shape/VoxelShapes
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final VoxelShapestatic final doubleprivate static final VoxelShapestatic final doublestatic final VoxelShape
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanadjacentSidesCoverSquare(VoxelShape one, VoxelShape two, Direction direction) static doublecalculateMaxOffset(Direction.Axis axis, Box box, Iterable<VoxelShape> shapes, double maxDist) static VoxelShapecombine(VoxelShape one, VoxelShape two, BooleanBiFunction function) static VoxelShapecombineAndSimplify(VoxelShape first, VoxelShape second, BooleanBiFunction function) protected static PairListcreateListPair(int size, DoubleList first, DoubleList second, boolean includeFirst, boolean includeSecond) static VoxelShapecuboid(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) static VoxelShapestatic VoxelShapecuboidUnchecked(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) static VoxelShapeempty()static VoxelShapeextrudeFace(VoxelShape shape, Direction direction) protected static intfindRequiredBitResolution(double min, double max) static VoxelShapefullCube()static booleanisSideCovered(VoxelShape shape, VoxelShape neighbor, Direction direction) protected static longlcm(int a, int b) private static booleanmatchesAnywhere(PairList mergedX, PairList mergedY, PairList mergedZ, VoxelSet shape1, VoxelSet shape2, BooleanBiFunction predicate) static booleanmatchesAnywhere(VoxelShape shape1, VoxelShape shape2, BooleanBiFunction predicate) static VoxelShapeunion(VoxelShape first, VoxelShape second) static VoxelShapeunion(VoxelShape first, VoxelShape[] others) static booleanunionCoversFullCube(VoxelShape one, VoxelShape two) 
- 
Field Details- 
MIN_SIZEpublic static final double MIN_SIZE- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leey;a:D- intermediary - field_31880- Lnet/minecraft/class_259;field_31880:D- named - MIN_SIZE- Lnet/minecraft/util/shape/VoxelShapes;MIN_SIZE:D
 
- 
field_31881public static final double field_31881- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Leey;b:D- intermediary - field_31881- Lnet/minecraft/class_259;field_31881:D- named - field_31881- Lnet/minecraft/util/shape/VoxelShapes;field_31881:D
 
- 
FULL_CUBE- Mappings:
- Namespace - Name - Mixin selector - official - d- Leey;d:Lefb;- 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 - c- Leey;c:Lefb;- 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 - e- Leey;e:Lefb;- 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- 
VoxelShapespublic VoxelShapes()
 
- 
- 
Method Details- 
empty- Mappings:
- Namespace - Name - Mixin selector - official - a- Leey;a()Lefb;- 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- Leey;b()Lefb;- 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;
 
- 
cuboidpublic static VoxelShape cuboid(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) - Mappings:
- Namespace - Name - Mixin selector - official - a- Leey;a(DDDDDD)Lefb;- 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;
 
- 
cuboidUncheckedpublic static VoxelShape cuboidUnchecked(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) - Mappings:
- Namespace - Name - Mixin selector - official - b- Leey;b(DDDDDD)Lefb;- 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- Leey;a(Leed;)Lefb;- 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;
 
- 
findRequiredBitResolutionprotected static int findRequiredBitResolution(double min, double max) - Mappings:
- Namespace - Name - Mixin selector - official - a- Leey;a(DD)I- intermediary - method_1086- Lnet/minecraft/class_259;method_1086(DD)I- named - findRequiredBitResolution- Lnet/minecraft/util/shape/VoxelShapes;findRequiredBitResolution(DD)I
 
- 
lcmprotected static long lcm(int a, int b) - Mappings:
- Namespace - Name - Mixin selector - official - a- Leey;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- Leey;a(Lefb;Lefb;)Lefb;- 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- Leey;a(Lefb;[Lefb;)Lefb;- 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;
 
- 
combineAndSimplifypublic static VoxelShape combineAndSimplify(VoxelShape first, VoxelShape second, BooleanBiFunction function) - Mappings:
- Namespace - Name - Mixin selector - official - a- Leey;a(Lefb;Lefb;Leem;)Lefb;- 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- Leey;b(Lefb;Lefb;Leem;)Lefb;- 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;
 
- 
matchesAnywherepublic static boolean matchesAnywhere(VoxelShape shape1, VoxelShape shape2, BooleanBiFunction predicate) - Mappings:
- Namespace - Name - Mixin selector - official - c- Leey;c(Lefb;Lefb;Leem;)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
 
- 
matchesAnywhereprivate static boolean matchesAnywhere(PairList mergedX, PairList mergedY, PairList mergedZ, VoxelSet shape1, VoxelSet shape2, BooleanBiFunction predicate) - Mappings:
- Namespace - Name - Mixin selector - official - a- Leey;a(Leeu;Leeu;Leeu;Leer;Leer;Leem;)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
 
- 
calculateMaxOffsetpublic static double calculateMaxOffset(Direction.Axis axis, Box box, Iterable<VoxelShape> shapes, double maxDist) - Mappings:
- Namespace - Name - Mixin selector - official - a- Leey;a(Lha$a;Leed;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- named - calculateMaxOffset- Lnet/minecraft/util/shape/VoxelShapes;calculateMaxOffset(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/util/math/Box;Ljava/lang/Iterable;D)D
 
- 
isSideCovered- Mappings:
- Namespace - Name - Mixin selector - official - a- Leey;a(Lefb;Lefb;Lha;)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- Leey;a(Lefb;Lha;)Lefb;- 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- Mappings:
- Namespace - Name - Mixin selector - official - b- Leey;b(Lefb;Lefb;Lha;)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- Leey;b(Lefb;Lefb;)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
 
- 
createListPairprotected static PairList createListPair(int size, DoubleList first, DoubleList second, boolean includeFirst, boolean includeSecond) - Mappings:
- Namespace - Name - Mixin selector - official - a- Leey;a(ILit/unimi/dsi/fastutil/doubles/DoubleList;Lit/unimi/dsi/fastutil/doubles/DoubleList;ZZ)Leeu;- 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;
 
 
-