类 Box


  • public class Box
    extends Object
    Mappings:
    Namespace Name
    official dlv
    intermediary net/minecraft/class_238
    named net/minecraft/util/math/Box
    • 字段详细资料

      • field_31879

        private static final double field_31879
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official g Ldlv;g:D
        intermediary field_31879 Lnet/minecraft/class_238;field_31879:D
        named field_31879 Lnet/minecraft/util/math/Box;field_31879:D
      • minX

        public final double minX
        Mappings:
        Namespace Name Mixin selector
        official a Ldlv;a:D
        intermediary field_1323 Lnet/minecraft/class_238;field_1323:D
        named minX Lnet/minecraft/util/math/Box;minX:D
      • minY

        public final double minY
        Mappings:
        Namespace Name Mixin selector
        official b Ldlv;b:D
        intermediary field_1322 Lnet/minecraft/class_238;field_1322:D
        named minY Lnet/minecraft/util/math/Box;minY:D
      • minZ

        public final double minZ
        Mappings:
        Namespace Name Mixin selector
        official c Ldlv;c:D
        intermediary field_1321 Lnet/minecraft/class_238;field_1321:D
        named minZ Lnet/minecraft/util/math/Box;minZ:D
      • maxX

        public final double maxX
        Mappings:
        Namespace Name Mixin selector
        official d Ldlv;d:D
        intermediary field_1320 Lnet/minecraft/class_238;field_1320:D
        named maxX Lnet/minecraft/util/math/Box;maxX:D
      • maxY

        public final double maxY
        Mappings:
        Namespace Name Mixin selector
        official e Ldlv;e:D
        intermediary field_1325 Lnet/minecraft/class_238;field_1325:D
        named maxY Lnet/minecraft/util/math/Box;maxY:D
      • maxZ

        public final double maxZ
        Mappings:
        Namespace Name Mixin selector
        official f Ldlv;f:D
        intermediary field_1324 Lnet/minecraft/class_238;field_1324:D
        named maxZ Lnet/minecraft/util/math/Box;maxZ:D
    • 构造器详细资料

      • Box

        public Box​(double x1,
                   double y1,
                   double z1,
                   double x2,
                   double y2,
                   double z2)
        Mappings:
        Namespace Name Mixin selector
        official <init> Ldlv;<init>(DDDDDD)V
        intermediary <init> Lnet/minecraft/class_238;<init>(DDDDDD)V
        named <init> Lnet/minecraft/util/math/Box;<init>(DDDDDD)V
      • Box

        public Box​(BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official <init> Ldlv;<init>(Lgb;)V
        intermediary <init> Lnet/minecraft/class_238;<init>(Lnet/minecraft/class_2338;)V
        named <init> Lnet/minecraft/util/math/Box;<init>(Lnet/minecraft/util/math/BlockPos;)V
      • Box

        public Box​(BlockPos pos1,
                   BlockPos pos2)
        Mappings:
        Namespace Name Mixin selector
        official <init> Ldlv;<init>(Lgb;Lgb;)V
        intermediary <init> Lnet/minecraft/class_238;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)V
        named <init> Lnet/minecraft/util/math/Box;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)V
      • Box

        public Box​(Vec3d pos1,
                   Vec3d pos2)
        Mappings:
        Namespace Name Mixin selector
        official <init> Ldlv;<init>(Ldma;Ldma;)V
        intermediary <init> Lnet/minecraft/class_238;<init>(Lnet/minecraft/class_243;Lnet/minecraft/class_243;)V
        named <init> Lnet/minecraft/util/math/Box;<init>(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)V
    • 方法详细资料

      • from

        public static Box from​(BlockBox mutable)
        Mappings:
        Namespace Name Mixin selector
        official a Ldlv;a(Lczr;)Ldlv;
        intermediary method_19316 Lnet/minecraft/class_238;method_19316(Lnet/minecraft/class_3341;)Lnet/minecraft/class_238;
        named from Lnet/minecraft/util/math/Box;from(Lnet/minecraft/util/math/BlockBox;)Lnet/minecraft/util/math/Box;
      • from

        public static Box from​(Vec3d vec3d)
        Mappings:
        Namespace Name Mixin selector
        official a Ldlv;a(Ldma;)Ldlv;
        intermediary method_29968 Lnet/minecraft/class_238;method_29968(Lnet/minecraft/class_243;)Lnet/minecraft/class_238;
        named from Lnet/minecraft/util/math/Box;from(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Box;
      • method_35574

        public Box method_35574​(double double2)
        Mappings:
        Namespace Name Mixin selector
        official a Ldlv;a(D)Ldlv;
        intermediary method_35574 Lnet/minecraft/class_238;method_35574(D)Lnet/minecraft/class_238;
        named method_35574 Lnet/minecraft/util/math/Box;method_35574(D)Lnet/minecraft/util/math/Box;
      • method_35575

        public Box method_35575​(double double2)
        Mappings:
        Namespace Name Mixin selector
        official b Ldlv;b(D)Ldlv;
        intermediary method_35575 Lnet/minecraft/class_238;method_35575(D)Lnet/minecraft/class_238;
        named method_35575 Lnet/minecraft/util/math/Box;method_35575(D)Lnet/minecraft/util/math/Box;
      • method_35576

        public Box method_35576​(double double2)
        Mappings:
        Namespace Name Mixin selector
        official c Ldlv;c(D)Ldlv;
        intermediary method_35576 Lnet/minecraft/class_238;method_35576(D)Lnet/minecraft/class_238;
        named method_35576 Lnet/minecraft/util/math/Box;method_35576(D)Lnet/minecraft/util/math/Box;
      • method_35577

        public Box method_35577​(double double2)
        Mappings:
        Namespace Name Mixin selector
        official d Ldlv;d(D)Ldlv;
        intermediary method_35577 Lnet/minecraft/class_238;method_35577(D)Lnet/minecraft/class_238;
        named method_35577 Lnet/minecraft/util/math/Box;method_35577(D)Lnet/minecraft/util/math/Box;
      • method_35578

        public Box method_35578​(double double2)
        Mappings:
        Namespace Name Mixin selector
        official e Ldlv;e(D)Ldlv;
        intermediary method_35578 Lnet/minecraft/class_238;method_35578(D)Lnet/minecraft/class_238;
        named method_35578 Lnet/minecraft/util/math/Box;method_35578(D)Lnet/minecraft/util/math/Box;
      • method_35579

        public Box method_35579​(double double2)
        Mappings:
        Namespace Name Mixin selector
        official f Ldlv;f(D)Ldlv;
        intermediary method_35579 Lnet/minecraft/class_238;method_35579(D)Lnet/minecraft/class_238;
        named method_35579 Lnet/minecraft/util/math/Box;method_35579(D)Lnet/minecraft/util/math/Box;
      • getMin

        public double getMin​(Direction.Axis axis)
        Mappings:
        Namespace Name Mixin selector
        official a Ldlv;a(Lgg$a;)D
        intermediary method_1001 Lnet/minecraft/class_238;method_1001(Lnet/minecraft/class_2350$class_2351;)D
        named getMin Lnet/minecraft/util/math/Box;getMin(Lnet/minecraft/util/math/Direction$Axis;)D
      • getMax

        public double getMax​(Direction.Axis axis)
        Mappings:
        Namespace Name Mixin selector
        official b Ldlv;b(Lgg$a;)D
        intermediary method_990 Lnet/minecraft/class_238;method_990(Lnet/minecraft/class_2350$class_2351;)D
        named getMax Lnet/minecraft/util/math/Box;getMax(Lnet/minecraft/util/math/Direction$Axis;)D
      • equals

        public boolean equals​(Object o)
        覆盖:
        equals 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official equals Ldlv;equals(Ljava/lang/Object;)Z
        intermediary equals Lnet/minecraft/class_238;equals(Ljava/lang/Object;)Z
        named equals Lnet/minecraft/util/math/Box;equals(Ljava/lang/Object;)Z
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official hashCode Ldlv;hashCode()I
        intermediary hashCode Lnet/minecraft/class_238;hashCode()I
        named hashCode Lnet/minecraft/util/math/Box;hashCode()I
      • shrink

        public Box shrink​(double x,
                          double y,
                          double z)
        Mappings:
        Namespace Name Mixin selector
        official a Ldlv;a(DDD)Ldlv;
        intermediary method_1002 Lnet/minecraft/class_238;method_1002(DDD)Lnet/minecraft/class_238;
        named shrink Lnet/minecraft/util/math/Box;shrink(DDD)Lnet/minecraft/util/math/Box;
      • stretch

        public Box stretch​(Vec3d scale)
        Mappings:
        Namespace Name Mixin selector
        official b Ldlv;b(Ldma;)Ldlv;
        intermediary method_18804 Lnet/minecraft/class_238;method_18804(Lnet/minecraft/class_243;)Lnet/minecraft/class_238;
        named stretch Lnet/minecraft/util/math/Box;stretch(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Box;
      • stretch

        public Box stretch​(double x,
                           double y,
                           double z)
        Mappings:
        Namespace Name Mixin selector
        official b Ldlv;b(DDD)Ldlv;
        intermediary method_1012 Lnet/minecraft/class_238;method_1012(DDD)Lnet/minecraft/class_238;
        named stretch Lnet/minecraft/util/math/Box;stretch(DDD)Lnet/minecraft/util/math/Box;
      • expand

        public Box expand​(double x,
                          double y,
                          double z)
        Mappings:
        Namespace Name Mixin selector
        official c Ldlv;c(DDD)Ldlv;
        intermediary method_1009 Lnet/minecraft/class_238;method_1009(DDD)Lnet/minecraft/class_238;
        named expand Lnet/minecraft/util/math/Box;expand(DDD)Lnet/minecraft/util/math/Box;
      • expand

        public Box expand​(double value)
        Mappings:
        Namespace Name Mixin selector
        official g Ldlv;g(D)Ldlv;
        intermediary method_1014 Lnet/minecraft/class_238;method_1014(D)Lnet/minecraft/class_238;
        named expand Lnet/minecraft/util/math/Box;expand(D)Lnet/minecraft/util/math/Box;
      • intersection

        public Box intersection​(Box box)
        Mappings:
        Namespace Name Mixin selector
        official a Ldlv;a(Ldlv;)Ldlv;
        intermediary method_999 Lnet/minecraft/class_238;method_999(Lnet/minecraft/class_238;)Lnet/minecraft/class_238;
        named intersection Lnet/minecraft/util/math/Box;intersection(Lnet/minecraft/util/math/Box;)Lnet/minecraft/util/math/Box;
      • union

        public Box union​(Box box)
        Mappings:
        Namespace Name Mixin selector
        official b Ldlv;b(Ldlv;)Ldlv;
        intermediary method_991 Lnet/minecraft/class_238;method_991(Lnet/minecraft/class_238;)Lnet/minecraft/class_238;
        named union Lnet/minecraft/util/math/Box;union(Lnet/minecraft/util/math/Box;)Lnet/minecraft/util/math/Box;
      • offset

        public Box offset​(double x,
                          double y,
                          double z)
        Mappings:
        Namespace Name Mixin selector
        official d Ldlv;d(DDD)Ldlv;
        intermediary method_989 Lnet/minecraft/class_238;method_989(DDD)Lnet/minecraft/class_238;
        named offset Lnet/minecraft/util/math/Box;offset(DDD)Lnet/minecraft/util/math/Box;
      • offset

        public Box offset​(BlockPos blockPos)
        Mappings:
        Namespace Name Mixin selector
        official a Ldlv;a(Lgb;)Ldlv;
        intermediary method_996 Lnet/minecraft/class_238;method_996(Lnet/minecraft/class_2338;)Lnet/minecraft/class_238;
        named offset Lnet/minecraft/util/math/Box;offset(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
      • offset

        public Box offset​(Vec3d vec3d)
        Mappings:
        Namespace Name Mixin selector
        official c Ldlv;c(Ldma;)Ldlv;
        intermediary method_997 Lnet/minecraft/class_238;method_997(Lnet/minecraft/class_243;)Lnet/minecraft/class_238;
        named offset Lnet/minecraft/util/math/Box;offset(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Box;
      • intersects

        public boolean intersects​(Box box)
        Mappings:
        Namespace Name Mixin selector
        official c Ldlv;c(Ldlv;)Z
        intermediary method_994 Lnet/minecraft/class_238;method_994(Lnet/minecraft/class_238;)Z
        named intersects Lnet/minecraft/util/math/Box;intersects(Lnet/minecraft/util/math/Box;)Z
      • intersects

        public boolean intersects​(double minX,
                                  double minY,
                                  double minZ,
                                  double maxX,
                                  double maxY,
                                  double maxZ)
        Mappings:
        Namespace Name Mixin selector
        official a Ldlv;a(DDDDDD)Z
        intermediary method_1003 Lnet/minecraft/class_238;method_1003(DDDDDD)Z
        named intersects Lnet/minecraft/util/math/Box;intersects(DDDDDD)Z
      • intersects

        public boolean intersects​(Vec3d from,
                                  Vec3d to)
        Mappings:
        Namespace Name Mixin selector
        official a Ldlv;a(Ldma;Ldma;)Z
        intermediary method_993 Lnet/minecraft/class_238;method_993(Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Z
        named intersects Lnet/minecraft/util/math/Box;intersects(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Z
      • contains

        public boolean contains​(Vec3d vec)
        Mappings:
        Namespace Name Mixin selector
        official d Ldlv;d(Ldma;)Z
        intermediary method_1006 Lnet/minecraft/class_238;method_1006(Lnet/minecraft/class_243;)Z
        named contains Lnet/minecraft/util/math/Box;contains(Lnet/minecraft/util/math/Vec3d;)Z
      • contains

        public boolean contains​(double x,
                                double y,
                                double z)
        Mappings:
        Namespace Name Mixin selector
        official e Ldlv;e(DDD)Z
        intermediary method_1008 Lnet/minecraft/class_238;method_1008(DDD)Z
        named contains Lnet/minecraft/util/math/Box;contains(DDD)Z
      • getAverageSideLength

        public double getAverageSideLength()
        Mappings:
        Namespace Name Mixin selector
        official a Ldlv;a()D
        intermediary method_995 Lnet/minecraft/class_238;method_995()D
        named getAverageSideLength Lnet/minecraft/util/math/Box;getAverageSideLength()D
      • getXLength

        public double getXLength()
        Mappings:
        Namespace Name Mixin selector
        official b Ldlv;b()D
        intermediary method_17939 Lnet/minecraft/class_238;method_17939()D
        named getXLength Lnet/minecraft/util/math/Box;getXLength()D
      • getYLength

        public double getYLength()
        Mappings:
        Namespace Name Mixin selector
        official c Ldlv;c()D
        intermediary method_17940 Lnet/minecraft/class_238;method_17940()D
        named getYLength Lnet/minecraft/util/math/Box;getYLength()D
      • getZLength

        public double getZLength()
        Mappings:
        Namespace Name Mixin selector
        official d Ldlv;d()D
        intermediary method_17941 Lnet/minecraft/class_238;method_17941()D
        named getZLength Lnet/minecraft/util/math/Box;getZLength()D
      • method_35580

        public Box method_35580​(double double2,
                                double double3,
                                double double4)
        Mappings:
        Namespace Name Mixin selector
        official f Ldlv;f(DDD)Ldlv;
        intermediary method_35580 Lnet/minecraft/class_238;method_35580(DDD)Lnet/minecraft/class_238;
        named method_35580 Lnet/minecraft/util/math/Box;method_35580(DDD)Lnet/minecraft/util/math/Box;
      • contract

        public Box contract​(double value)
        Mappings:
        Namespace Name Mixin selector
        official h Ldlv;h(D)Ldlv;
        intermediary method_1011 Lnet/minecraft/class_238;method_1011(D)Lnet/minecraft/class_238;
        named contract Lnet/minecraft/util/math/Box;contract(D)Lnet/minecraft/util/math/Box;
      • raycast

        public Optional<Vec3d> raycast​(Vec3d min,
                                       Vec3d max)
        Mappings:
        Namespace Name Mixin selector
        official b Ldlv;b(Ldma;Ldma;)Ljava/util/Optional;
        intermediary method_992 Lnet/minecraft/class_238;method_992(Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Ljava/util/Optional;
        named raycast Lnet/minecraft/util/math/Box;raycast(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Ljava/util/Optional;
      • raycast

        @Nullable
        public static @Nullable BlockHitResult raycast​(Iterable<Box> boxes,
                                                       Vec3d from,
                                                       Vec3d to,
                                                       BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official a Ldlv;a(Ljava/lang/Iterable;Ldma;Ldma;Lgb;)Ldlw;
        intermediary method_1010 Lnet/minecraft/class_238;method_1010(Ljava/lang/Iterable;Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_2338;)Lnet/minecraft/class_3965;
        named raycast Lnet/minecraft/util/math/Box;raycast(Ljava/lang/Iterable;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/hit/BlockHitResult;
      • traceCollisionSide

        @Nullable
        private static @Nullable Direction traceCollisionSide​(Box box,
                                                              Vec3d intersectingVector,
                                                              double[] traceDistanceResult,
                                                              @Nullable
                                                              @Nullable Direction approachDirection,
                                                              double xDelta,
                                                              double yDelta,
                                                              double zDelta)
        Mappings:
        Namespace Name Mixin selector
        official a Ldlv;a(Ldlv;Ldma;[DLgg;DDD)Lgg;
        intermediary method_1007 Lnet/minecraft/class_238;method_1007(Lnet/minecraft/class_238;Lnet/minecraft/class_243;[DLnet/minecraft/class_2350;DDD)Lnet/minecraft/class_2350;
        named traceCollisionSide Lnet/minecraft/util/math/Box;traceCollisionSide(Lnet/minecraft/util/math/Box;Lnet/minecraft/util/math/Vec3d;[DLnet/minecraft/util/math/Direction;DDD)Lnet/minecraft/util/math/Direction;
      • traceCollisionSide

        @Nullable
        private static @Nullable Direction traceCollisionSide​(double[] traceDistanceResult,
                                                              @Nullable
                                                              @Nullable Direction approachDirection,
                                                              double xDelta,
                                                              double yDelta,
                                                              double zDelta,
                                                              double begin,
                                                              double minX,
                                                              double maxX,
                                                              double minZ,
                                                              double maxZ,
                                                              Direction resultDirection,
                                                              double startX,
                                                              double startY,
                                                              double startZ)
        Mappings:
        Namespace Name Mixin selector
        official a Ldlv;a([DLgg;DDDDDDDDLgg;DDD)Lgg;
        intermediary method_998 Lnet/minecraft/class_238;method_998([DLnet/minecraft/class_2350;DDDDDDDDLnet/minecraft/class_2350;DDD)Lnet/minecraft/class_2350;
        named traceCollisionSide Lnet/minecraft/util/math/Box;traceCollisionSide([DLnet/minecraft/util/math/Direction;DDDDDDDDLnet/minecraft/util/math/Direction;DDD)Lnet/minecraft/util/math/Direction;
      • toString

        public String toString()
        覆盖:
        toString 在类中 Object
        Mappings:
        Namespace Name Mixin selector
        official toString Ldlv;toString()Ljava/lang/String;
        intermediary toString Lnet/minecraft/class_238;toString()Ljava/lang/String;
        named toString Lnet/minecraft/util/math/Box;toString()Ljava/lang/String;
      • isValid

        public boolean isValid()
        Mappings:
        Namespace Name Mixin selector
        official e Ldlv;e()Z
        intermediary method_1013 Lnet/minecraft/class_238;method_1013()Z
        named isValid Lnet/minecraft/util/math/Box;isValid()Z
      • getCenter

        public Vec3d getCenter()
        Mappings:
        Namespace Name Mixin selector
        official f Ldlv;f()Ldma;
        intermediary method_1005 Lnet/minecraft/class_238;method_1005()Lnet/minecraft/class_243;
        named getCenter Lnet/minecraft/util/math/Box;getCenter()Lnet/minecraft/util/math/Vec3d;
      • of

        public static Box of​(Vec3d center,
                             double dx,
                             double dy,
                             double dz)
        Mappings:
        Namespace Name Mixin selector
        official a Ldlv;a(Ldma;DDD)Ldlv;
        intermediary method_30048 Lnet/minecraft/class_238;method_30048(Lnet/minecraft/class_243;DDD)Lnet/minecraft/class_238;
        named of Lnet/minecraft/util/math/Box;of(Lnet/minecraft/util/math/Vec3d;DDD)Lnet/minecraft/util/math/Box;