Package net.minecraft.util.shape
Class VoxelShapes
java.lang.Object
net.minecraft.util.shape.VoxelShapes
- Mappings:
Namespace Name named net/minecraft/util/shape/VoxelShapesintermediary net/minecraft/class_259official foz
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Vec3dprivate static final VoxelShapestatic final doubleprivate static final VoxelShapestatic final doublestatic final VoxelShape -
Constructor Summary
Constructors -
Method Summary
Modifier 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) static Map<Direction.Axis, VoxelShape> createAxisShapeMap(VoxelShape shape) static Map<Direction.Axis, VoxelShape> createAxisShapeMap(VoxelShape shape, Vec3d anchor) static Map<BlockFace, Map<Direction, VoxelShape>> static Map<Direction, VoxelShape> createFacingShapeMap(VoxelShape shape) static Map<Direction, VoxelShape> createFacingShapeMap(VoxelShape shape, Vec3d anchor) static Map<Direction.Axis, VoxelShape> static Map<Direction.Axis, VoxelShape> createHorizontalAxisShapeMap(VoxelShape shape, Vec3d anchor) static Map<Direction, VoxelShape> static Map<Direction, VoxelShape> createHorizontalFacingShapeMap(VoxelShape shape, Vec3d anchor) 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 booleanequal(VoxelShape shape1, VoxelShape shape2) 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) (package private) static DoubleListtransform(DoubleList pointPositions, boolean flip, double component, double anchor) static VoxelShapetransform(VoxelShape shape, DirectionTransformation transformation) static VoxelShapetransform(VoxelShape shape, DirectionTransformation transformation, Vec3d anchor) static VoxelShapeunion(VoxelShape first, VoxelShape second) static VoxelShapeunion(VoxelShape first, VoxelShape[] others) static booleanunionCoversFullCube(VoxelShape one, VoxelShape two)
-
Field Details
-
MIN_SIZE
public static final double MIN_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_SIZELnet/minecraft/util/shape/VoxelShapes;MIN_SIZE:Dintermediary field_31880Lnet/minecraft/class_259;field_31880:Dofficial aLfoz;a:D
-
field_31881
public static final double field_31881- See Also:
- Mappings:
Namespace Name Mixin selector named field_31881Lnet/minecraft/util/shape/VoxelShapes;field_31881:Dintermediary field_31881Lnet/minecraft/class_259;field_31881:Dofficial bLfoz;b:D
-
FULL_CUBE
- Mappings:
Namespace Name Mixin selector named FULL_CUBELnet/minecraft/util/shape/VoxelShapes;FULL_CUBE:Lnet/minecraft/util/shape/VoxelShape;intermediary field_1385Lnet/minecraft/class_259;field_1385:Lnet/minecraft/class_265;official dLfoz;d:Lfpc;
-
BLOCK_CENTER
- Mappings:
Namespace Name Mixin selector named BLOCK_CENTERLnet/minecraft/util/shape/VoxelShapes;BLOCK_CENTER:Lnet/minecraft/util/math/Vec3d;intermediary field_55842Lnet/minecraft/class_259;field_55842:Lnet/minecraft/class_243;official eLfoz;e:Lfoh;
-
UNBOUNDED
- Mappings:
Namespace Name Mixin selector named UNBOUNDEDLnet/minecraft/util/shape/VoxelShapes;UNBOUNDED:Lnet/minecraft/util/shape/VoxelShape;intermediary field_17669Lnet/minecraft/class_259;field_17669:Lnet/minecraft/class_265;official cLfoz;c:Lfpc;
-
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTYLnet/minecraft/util/shape/VoxelShapes;EMPTY:Lnet/minecraft/util/shape/VoxelShape;intermediary field_1384Lnet/minecraft/class_259;field_1384:Lnet/minecraft/class_265;official fLfoz;f:Lfpc;
-
-
Constructor Details
-
VoxelShapes
public VoxelShapes()
-
-
Method Details
-
empty
- Mappings:
Namespace Name Mixin selector named emptyLnet/minecraft/util/shape/VoxelShapes;empty()Lnet/minecraft/util/shape/VoxelShape;intermediary method_1073Lnet/minecraft/class_259;method_1073()Lnet/minecraft/class_265;official aLfoz;a()Lfpc;
-
fullCube
- Mappings:
Namespace Name Mixin selector named fullCubeLnet/minecraft/util/shape/VoxelShapes;fullCube()Lnet/minecraft/util/shape/VoxelShape;intermediary method_1077Lnet/minecraft/class_259;method_1077()Lnet/minecraft/class_265;official bLfoz;b()Lfpc;
-
cuboid
public static VoxelShape cuboid(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) - Mappings:
Namespace Name Mixin selector named cuboidLnet/minecraft/util/shape/VoxelShapes;cuboid(DDDDDD)Lnet/minecraft/util/shape/VoxelShape;intermediary method_1081Lnet/minecraft/class_259;method_1081(DDDDDD)Lnet/minecraft/class_265;official aLfoz;a(DDDDDD)Lfpc;
-
cuboidUnchecked
public static VoxelShape cuboidUnchecked(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) - Mappings:
Namespace Name Mixin selector named cuboidUncheckedLnet/minecraft/util/shape/VoxelShapes;cuboidUnchecked(DDDDDD)Lnet/minecraft/util/shape/VoxelShape;intermediary method_31943Lnet/minecraft/class_259;method_31943(DDDDDD)Lnet/minecraft/class_265;official bLfoz;b(DDDDDD)Lfpc;
-
cuboid
- Mappings:
Namespace Name Mixin selector named cuboidLnet/minecraft/util/shape/VoxelShapes;cuboid(Lnet/minecraft/util/math/Box;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_1078Lnet/minecraft/class_259;method_1078(Lnet/minecraft/class_238;)Lnet/minecraft/class_265;official aLfoz;a(Lfoc;)Lfpc;
-
findRequiredBitResolution
protected static int findRequiredBitResolution(double min, double max) - Mappings:
Namespace Name Mixin selector named findRequiredBitResolutionLnet/minecraft/util/shape/VoxelShapes;findRequiredBitResolution(DD)Iintermediary method_1086Lnet/minecraft/class_259;method_1086(DD)Iofficial aLfoz;a(DD)I
-
lcm
protected static long lcm(int a, int b) - Mappings:
Namespace Name Mixin selector named lcmLnet/minecraft/util/shape/VoxelShapes;lcm(II)Jintermediary method_1079Lnet/minecraft/class_259;method_1079(II)Jofficial aLfoz;a(II)J
-
union
- Mappings:
Namespace Name Mixin selector named unionLnet/minecraft/util/shape/VoxelShapes;union(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_1084Lnet/minecraft/class_259;method_1084(Lnet/minecraft/class_265;Lnet/minecraft/class_265;)Lnet/minecraft/class_265;official aLfoz;a(Lfpc;Lfpc;)Lfpc;
-
union
- Mappings:
Namespace Name Mixin selector named unionLnet/minecraft/util/shape/VoxelShapes;union(Lnet/minecraft/util/shape/VoxelShape;[Lnet/minecraft/util/shape/VoxelShape;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_17786Lnet/minecraft/class_259;method_17786(Lnet/minecraft/class_265;[Lnet/minecraft/class_265;)Lnet/minecraft/class_265;official aLfoz;a(Lfpc;[Lfpc;)Lfpc;
-
combineAndSimplify
public static VoxelShape combineAndSimplify(VoxelShape first, VoxelShape second, BooleanBiFunction function) - Mappings:
Namespace Name Mixin selector named combineAndSimplifyLnet/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_1072Lnet/minecraft/class_259;method_1072(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_247;)Lnet/minecraft/class_265;official aLfoz;a(Lfpc;Lfpc;Lfol;)Lfpc;
-
combine
- Mappings:
Namespace Name Mixin selector named combineLnet/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_1082Lnet/minecraft/class_259;method_1082(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_247;)Lnet/minecraft/class_265;official bLfoz;b(Lfpc;Lfpc;Lfol;)Lfpc;
-
matchesAnywhere
public static boolean matchesAnywhere(VoxelShape shape1, VoxelShape shape2, BooleanBiFunction predicate) - Mappings:
Namespace Name Mixin selector named matchesAnywhereLnet/minecraft/util/shape/VoxelShapes;matchesAnywhere(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/function/BooleanBiFunction;)Zintermediary method_1074Lnet/minecraft/class_259;method_1074(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_247;)Zofficial cLfoz;c(Lfpc;Lfpc;Lfol;)Z
-
matchesAnywhere
private static boolean matchesAnywhere(PairList mergedX, PairList mergedY, PairList mergedZ, VoxelSet shape1, VoxelSet shape2, BooleanBiFunction predicate) - Mappings:
Namespace Name Mixin selector named matchesAnywhereLnet/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;)Zintermediary method_1071Lnet/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;)Zofficial aLfoz;a(Lfou;Lfou;Lfou;Lfoq;Lfoq;Lfol;)Z
-
calculateMaxOffset
public static double calculateMaxOffset(Direction.Axis axis, Box box, Iterable<VoxelShape> shapes, double maxDist) - Mappings:
Namespace Name Mixin selector named calculateMaxOffsetLnet/minecraft/util/shape/VoxelShapes;calculateMaxOffset(Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/util/math/Box;Ljava/lang/Iterable;D)Dintermediary method_1085Lnet/minecraft/class_259;method_1085(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_238;Ljava/lang/Iterable;D)Dofficial aLfoz;a(Ljg$a;Lfoc;Ljava/lang/Iterable;D)D
-
isSideCovered
- Mappings:
Namespace Name Mixin selector named isSideCoveredLnet/minecraft/util/shape/VoxelShapes;isSideCovered(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Direction;)Zintermediary method_1083Lnet/minecraft/class_259;method_1083(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_2350;)Zofficial aLfoz;a(Lfpc;Lfpc;Ljg;)Z
-
adjacentSidesCoverSquare
- Mappings:
Namespace Name Mixin selector named adjacentSidesCoverSquareLnet/minecraft/util/shape/VoxelShapes;adjacentSidesCoverSquare(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Direction;)Zintermediary method_1080Lnet/minecraft/class_259;method_1080(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_2350;)Zofficial bLfoz;b(Lfpc;Lfpc;Ljg;)Z
-
unionCoversFullCube
- Mappings:
Namespace Name Mixin selector named unionCoversFullCubeLnet/minecraft/util/shape/VoxelShapes;unionCoversFullCube(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;)Zintermediary method_20713Lnet/minecraft/class_259;method_20713(Lnet/minecraft/class_265;Lnet/minecraft/class_265;)Zofficial bLfoz;b(Lfpc;Lfpc;)Z
-
createListPair
protected static PairList createListPair(int size, DoubleList first, DoubleList second, boolean includeFirst, boolean includeSecond) - Mappings:
Namespace Name Mixin selector named createListPairLnet/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_1069Lnet/minecraft/class_259;method_1069(ILit/unimi/dsi/fastutil/doubles/DoubleList;Lit/unimi/dsi/fastutil/doubles/DoubleList;ZZ)Lnet/minecraft/class_255;official aLfoz;a(ILit/unimi/dsi/fastutil/doubles/DoubleList;Lit/unimi/dsi/fastutil/doubles/DoubleList;ZZ)Lfou;
-
transform
- Mappings:
Namespace Name Mixin selector named transformLnet/minecraft/util/shape/VoxelShapes;transform(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/DirectionTransformation;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_66496Lnet/minecraft/class_259;method_66496(Lnet/minecraft/class_265;Lnet/minecraft/class_4990;)Lnet/minecraft/class_265;official aLfoz;a(Lfpc;Lh;)Lfpc;
-
transform
public static VoxelShape transform(VoxelShape shape, DirectionTransformation transformation, Vec3d anchor) - Mappings:
Namespace Name Mixin selector named transformLnet/minecraft/util/shape/VoxelShapes;transform(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/DirectionTransformation;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/shape/VoxelShape;intermediary method_66497Lnet/minecraft/class_259;method_66497(Lnet/minecraft/class_265;Lnet/minecraft/class_4990;Lnet/minecraft/class_243;)Lnet/minecraft/class_265;official aLfoz;a(Lfpc;Lh;Lfoh;)Lfpc;
-
transform
static DoubleList transform(DoubleList pointPositions, boolean flip, double component, double anchor) - Mappings:
Namespace Name Mixin selector named transformLnet/minecraft/util/shape/VoxelShapes;transform(Lit/unimi/dsi/fastutil/doubles/DoubleList;ZDD)Lit/unimi/dsi/fastutil/doubles/DoubleList;intermediary method_66498Lnet/minecraft/class_259;method_66498(Lit/unimi/dsi/fastutil/doubles/DoubleList;ZDD)Lit/unimi/dsi/fastutil/doubles/DoubleList;official aLfoz;a(Lit/unimi/dsi/fastutil/doubles/DoubleList;ZDD)Lit/unimi/dsi/fastutil/doubles/DoubleList;
-
equal
- Mappings:
Namespace Name Mixin selector named equalLnet/minecraft/util/shape/VoxelShapes;equal(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;)Zintermediary method_66503Lnet/minecraft/class_259;method_66503(Lnet/minecraft/class_265;Lnet/minecraft/class_265;)Zofficial cLfoz;c(Lfpc;Lfpc;)Z
-
createHorizontalAxisShapeMap
- Mappings:
Namespace Name Mixin selector named createHorizontalAxisShapeMapLnet/minecraft/util/shape/VoxelShapes;createHorizontalAxisShapeMap(Lnet/minecraft/util/shape/VoxelShape;)Ljava/util/Map;intermediary method_66494Lnet/minecraft/class_259;method_66494(Lnet/minecraft/class_265;)Ljava/util/Map;official aLfoz;a(Lfpc;)Ljava/util/Map;
-
createHorizontalAxisShapeMap
public static Map<Direction.Axis,VoxelShape> createHorizontalAxisShapeMap(VoxelShape shape, Vec3d anchor) - Mappings:
Namespace Name Mixin selector named createHorizontalAxisShapeMapLnet/minecraft/util/shape/VoxelShapes;createHorizontalAxisShapeMap(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Vec3d;)Ljava/util/Map;intermediary method_66495Lnet/minecraft/class_259;method_66495(Lnet/minecraft/class_265;Lnet/minecraft/class_243;)Ljava/util/Map;official aLfoz;a(Lfpc;Lfoh;)Ljava/util/Map;
-
createAxisShapeMap
- Mappings:
Namespace Name Mixin selector named createAxisShapeMapLnet/minecraft/util/shape/VoxelShapes;createAxisShapeMap(Lnet/minecraft/util/shape/VoxelShape;)Ljava/util/Map;intermediary method_66499Lnet/minecraft/class_259;method_66499(Lnet/minecraft/class_265;)Ljava/util/Map;official bLfoz;b(Lfpc;)Ljava/util/Map;
-
createAxisShapeMap
- Mappings:
Namespace Name Mixin selector named createAxisShapeMapLnet/minecraft/util/shape/VoxelShapes;createAxisShapeMap(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Vec3d;)Ljava/util/Map;intermediary method_66500Lnet/minecraft/class_259;method_66500(Lnet/minecraft/class_265;Lnet/minecraft/class_243;)Ljava/util/Map;official bLfoz;b(Lfpc;Lfoh;)Ljava/util/Map;
-
createHorizontalFacingShapeMap
- Mappings:
Namespace Name Mixin selector named createHorizontalFacingShapeMapLnet/minecraft/util/shape/VoxelShapes;createHorizontalFacingShapeMap(Lnet/minecraft/util/shape/VoxelShape;)Ljava/util/Map;intermediary method_66501Lnet/minecraft/class_259;method_66501(Lnet/minecraft/class_265;)Ljava/util/Map;official cLfoz;c(Lfpc;)Ljava/util/Map;
-
createHorizontalFacingShapeMap
public static Map<Direction,VoxelShape> createHorizontalFacingShapeMap(VoxelShape shape, Vec3d anchor) - Mappings:
Namespace Name Mixin selector named createHorizontalFacingShapeMapLnet/minecraft/util/shape/VoxelShapes;createHorizontalFacingShapeMap(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Vec3d;)Ljava/util/Map;intermediary method_66502Lnet/minecraft/class_259;method_66502(Lnet/minecraft/class_265;Lnet/minecraft/class_243;)Ljava/util/Map;official cLfoz;c(Lfpc;Lfoh;)Ljava/util/Map;
-
createFacingShapeMap
- Mappings:
Namespace Name Mixin selector named createFacingShapeMapLnet/minecraft/util/shape/VoxelShapes;createFacingShapeMap(Lnet/minecraft/util/shape/VoxelShape;)Ljava/util/Map;intermediary method_66504Lnet/minecraft/class_259;method_66504(Lnet/minecraft/class_265;)Ljava/util/Map;official dLfoz;d(Lfpc;)Ljava/util/Map;
-
createFacingShapeMap
- Mappings:
Namespace Name Mixin selector named createFacingShapeMapLnet/minecraft/util/shape/VoxelShapes;createFacingShapeMap(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Vec3d;)Ljava/util/Map;intermediary method_66505Lnet/minecraft/class_259;method_66505(Lnet/minecraft/class_265;Lnet/minecraft/class_243;)Ljava/util/Map;official dLfoz;d(Lfpc;Lfoh;)Ljava/util/Map;
-
createBlockFaceHorizontalFacingShapeMap
public static Map<BlockFace,Map<Direction, createBlockFaceHorizontalFacingShapeMapVoxelShape>> (VoxelShape shape) - Mappings:
Namespace Name Mixin selector named createBlockFaceHorizontalFacingShapeMapLnet/minecraft/util/shape/VoxelShapes;createBlockFaceHorizontalFacingShapeMap(Lnet/minecraft/util/shape/VoxelShape;)Ljava/util/Map;intermediary method_66506Lnet/minecraft/class_259;method_66506(Lnet/minecraft/class_265;)Ljava/util/Map;official eLfoz;e(Lfpc;)Ljava/util/Map;
-