类 VoxelShapes
- java.lang.Object
-
- net.minecraft.util.shape.VoxelShapes
-
public final class VoxelShapes extends Object
- Mappings:
Namespace Name official dmqintermediary net/minecraft/class_259named net/minecraft/util/shape/VoxelShapes
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interfaceVoxelShapes.BoxConsumer
-
字段概要
字段 修饰符和类型 字段 说明 private static VoxelShapeEMPTYstatic doublefield_31880static doublefield_31881private static VoxelShapeFULL_CUBEstatic VoxelShapeUNBOUNDED
-
构造器概要
构造器 构造器 说明 VoxelShapes()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static booleanadjacentSidesCoverSquare(VoxelShape one, VoxelShape two, Direction direction)static doublecalculateMaxOffset(Direction.Axis axis, Box box, Stream<VoxelShape> shapes, double maxDist)private static doublecalculatePushVelocity(Box box, WorldView world, double initial, ShapeContext context, AxisCycleDirection direction, Stream<VoxelShape> shapes)static doublecalculatePushVelocity(Direction.Axis axis, Box box, WorldView world, double initial, ShapeContext context, Stream<VoxelShape> shapes)private static intclamp(double value, double min, double max)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 xMin, double yMin, double zMin, double xMax, double yMax, double zMax)static VoxelShapecuboid(Box box)static 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_31880
public static final double field_31880
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLdmq;a:Dintermediary field_31880Lnet/minecraft/class_259;field_31880:Dnamed field_31880Lnet/minecraft/util/shape/VoxelShapes;field_31880:D
-
field_31881
public static final double field_31881
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLdmq;b:Dintermediary field_31881Lnet/minecraft/class_259;field_31881:Dnamed field_31881Lnet/minecraft/util/shape/VoxelShapes;field_31881:D
-
FULL_CUBE
private static final VoxelShape FULL_CUBE
- Mappings:
Namespace Name Mixin selector official dLdmq;d:Ldmt;intermediary field_1385Lnet/minecraft/class_259;field_1385:Lnet/minecraft/class_265;named FULL_CUBELnet/minecraft/util/shape/VoxelShapes;FULL_CUBE:Lnet/minecraft/util/shape/VoxelShape;
-
UNBOUNDED
public static final VoxelShape UNBOUNDED
- Mappings:
Namespace Name Mixin selector official cLdmq;c:Ldmt;intermediary field_17669Lnet/minecraft/class_259;field_17669:Lnet/minecraft/class_265;named UNBOUNDEDLnet/minecraft/util/shape/VoxelShapes;UNBOUNDED:Lnet/minecraft/util/shape/VoxelShape;
-
EMPTY
private static final VoxelShape EMPTY
- Mappings:
Namespace Name Mixin selector official eLdmq;e:Ldmt;intermediary field_1384Lnet/minecraft/class_259;field_1384:Lnet/minecraft/class_265;named EMPTYLnet/minecraft/util/shape/VoxelShapes;EMPTY:Lnet/minecraft/util/shape/VoxelShape;
-
-
方法详细资料
-
empty
public static VoxelShape empty()
- Mappings:
Namespace Name Mixin selector official aLdmq;a()Ldmt;intermediary method_1073Lnet/minecraft/class_259;method_1073()Lnet/minecraft/class_265;named emptyLnet/minecraft/util/shape/VoxelShapes;empty()Lnet/minecraft/util/shape/VoxelShape;
-
fullCube
public static VoxelShape fullCube()
- Mappings:
Namespace Name Mixin selector official bLdmq;b()Ldmt;intermediary method_1077Lnet/minecraft/class_259;method_1077()Lnet/minecraft/class_265;named fullCubeLnet/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 aLdmq;a(DDDDDD)Ldmt;intermediary method_1081Lnet/minecraft/class_259;method_1081(DDDDDD)Lnet/minecraft/class_265;named cuboidLnet/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 bLdmq;b(DDDDDD)Ldmt;intermediary method_31943Lnet/minecraft/class_259;method_31943(DDDDDD)Lnet/minecraft/class_265;named cuboidUncheckedLnet/minecraft/util/shape/VoxelShapes;cuboidUnchecked(DDDDDD)Lnet/minecraft/util/shape/VoxelShape;
-
cuboid
public static VoxelShape cuboid(Box box)
- Mappings:
Namespace Name Mixin selector official aLdmq;a(Ldlv;)Ldmt;intermediary method_1078Lnet/minecraft/class_259;method_1078(Lnet/minecraft/class_238;)Lnet/minecraft/class_265;named cuboidLnet/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 aLdmq;a(DD)Iintermediary method_1086Lnet/minecraft/class_259;method_1086(DD)Inamed findRequiredBitResolutionLnet/minecraft/util/shape/VoxelShapes;findRequiredBitResolution(DD)I
-
lcm
protected static long lcm(int a, int b)- Mappings:
Namespace Name Mixin selector official aLdmq;a(II)Jintermediary method_1079Lnet/minecraft/class_259;method_1079(II)Jnamed lcmLnet/minecraft/util/shape/VoxelShapes;lcm(II)J
-
union
public static VoxelShape union(VoxelShape first, VoxelShape second)
- Mappings:
Namespace Name Mixin selector official aLdmq;a(Ldmt;Ldmt;)Ldmt;intermediary method_1084Lnet/minecraft/class_259;method_1084(Lnet/minecraft/class_265;Lnet/minecraft/class_265;)Lnet/minecraft/class_265;named unionLnet/minecraft/util/shape/VoxelShapes;union(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;)Lnet/minecraft/util/shape/VoxelShape;
-
union
public static VoxelShape union(VoxelShape first, VoxelShape[] others)
- Mappings:
Namespace Name Mixin selector official aLdmq;a(Ldmt;[Ldmt;)Ldmt;intermediary method_17786Lnet/minecraft/class_259;method_17786(Lnet/minecraft/class_265;[Lnet/minecraft/class_265;)Lnet/minecraft/class_265;named unionLnet/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 aLdmq;a(Ldmt;Ldmt;Ldme;)Ldmt;intermediary method_1072Lnet/minecraft/class_259;method_1072(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_247;)Lnet/minecraft/class_265;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;
-
combine
public static VoxelShape combine(VoxelShape one, VoxelShape two, BooleanBiFunction function)
- Mappings:
Namespace Name Mixin selector official bLdmq;b(Ldmt;Ldmt;Ldme;)Ldmt;intermediary method_1082Lnet/minecraft/class_259;method_1082(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_247;)Lnet/minecraft/class_265;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;
-
matchesAnywhere
public static boolean matchesAnywhere(VoxelShape shape1, VoxelShape shape2, BooleanBiFunction predicate)
- Mappings:
Namespace Name Mixin selector official cLdmq;c(Ldmt;Ldmt;Ldme;)Zintermediary method_1074Lnet/minecraft/class_259;method_1074(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_247;)Znamed matchesAnywhereLnet/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 aLdmq;a(Ldmm;Ldmm;Ldmm;Ldmj;Ldmj;Ldme;)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;)Znamed 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;)Z
-
calculateMaxOffset
public static double calculateMaxOffset(Direction.Axis axis, Box box, Stream<VoxelShape> shapes, double maxDist)
- Mappings:
Namespace Name Mixin selector official aLdmq;a(Lgg$a;Ldlv;Ljava/util/stream/Stream;D)Dintermediary method_1085Lnet/minecraft/class_259;method_1085(Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_238;Ljava/util/stream/Stream;D)Dnamed calculateMaxOffsetLnet/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 aLdmq;a(Lgg$a;Ldlv;Lbvu;DLdmf;Ljava/util/stream/Stream;)Dintermediary method_17945Lnet/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;)Dnamed calculatePushVelocityLnet/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 aLdmq;a(Ldlv;Lbvu;DLdmf;Lfz;Ljava/util/stream/Stream;)Dintermediary method_17944Lnet/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;)Dnamed calculatePushVelocityLnet/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 aLdmq;a(DDD)Iintermediary method_17943Lnet/minecraft/class_259;method_17943(DDD)Inamed clampLnet/minecraft/util/shape/VoxelShapes;clamp(DDD)I
-
isSideCovered
public static boolean isSideCovered(VoxelShape shape, VoxelShape neighbor, Direction direction)
- Mappings:
Namespace Name Mixin selector official aLdmq;a(Ldmt;Ldmt;Lgg;)Zintermediary method_1083Lnet/minecraft/class_259;method_1083(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_2350;)Znamed isSideCoveredLnet/minecraft/util/shape/VoxelShapes;isSideCovered(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Direction;)Z
-
extrudeFace
public static VoxelShape extrudeFace(VoxelShape shape, Direction direction)
- Mappings:
Namespace Name Mixin selector official aLdmq;a(Ldmt;Lgg;)Ldmt;intermediary method_16344Lnet/minecraft/class_259;method_16344(Lnet/minecraft/class_265;Lnet/minecraft/class_2350;)Lnet/minecraft/class_265;named extrudeFaceLnet/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 bLdmq;b(Ldmt;Ldmt;Lgg;)Zintermediary method_1080Lnet/minecraft/class_259;method_1080(Lnet/minecraft/class_265;Lnet/minecraft/class_265;Lnet/minecraft/class_2350;)Znamed adjacentSidesCoverSquareLnet/minecraft/util/shape/VoxelShapes;adjacentSidesCoverSquare(Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/shape/VoxelShape;Lnet/minecraft/util/math/Direction;)Z
-
unionCoversFullCube
public static boolean unionCoversFullCube(VoxelShape one, VoxelShape two)
- Mappings:
Namespace Name Mixin selector official bLdmq;b(Ldmt;Ldmt;)Zintermediary method_20713Lnet/minecraft/class_259;method_20713(Lnet/minecraft/class_265;Lnet/minecraft/class_265;)Znamed unionCoversFullCubeLnet/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 aLdmq;a(ILit/unimi/dsi/fastutil/doubles/DoubleList;Lit/unimi/dsi/fastutil/doubles/DoubleList;ZZ)Ldmm;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;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;
-
-