Class AxisAlignedBB


  • public class AxisAlignedBB
    extends java.lang.Object
    • Field Detail

      • minX

        public final double minX
      • minY

        public final double minY
      • minZ

        public final double minZ
      • maxX

        public final double maxX
      • maxY

        public final double maxY
      • maxZ

        public final double maxZ
    • Constructor Detail

      • AxisAlignedBB

        public AxisAlignedBB​(double p_i2300_1_,
                             double p_i2300_3_,
                             double p_i2300_5_,
                             double p_i2300_7_,
                             double p_i2300_9_,
                             double p_i2300_11_)
      • AxisAlignedBB

        public AxisAlignedBB​(BlockPos p_i46612_1_)
      • AxisAlignedBB

        public AxisAlignedBB​(BlockPos p_i45554_1_,
                             BlockPos p_i45554_2_)
      • AxisAlignedBB

        public AxisAlignedBB​(Vector3d p_i47144_1_,
                             Vector3d p_i47144_2_)
    • Method Detail

      • unitCubeFromLowerCorner

        public static AxisAlignedBB unitCubeFromLowerCorner​(Vector3d p_241549_0_)
      • equals

        public boolean equals​(java.lang.Object p_equals_1_)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • contract

        public AxisAlignedBB contract​(double p_191195_1_,
                                      double p_191195_3_,
                                      double p_191195_5_)
      • expandTowards

        public AxisAlignedBB expandTowards​(double p_72321_1_,
                                           double p_72321_3_,
                                           double p_72321_5_)
      • inflate

        public AxisAlignedBB inflate​(double p_72314_1_,
                                     double p_72314_3_,
                                     double p_72314_5_)
      • move

        public AxisAlignedBB move​(double p_72317_1_,
                                  double p_72317_3_,
                                  double p_72317_5_)
      • intersects

        public boolean intersects​(AxisAlignedBB p_72326_1_)
      • intersects

        public boolean intersects​(double p_186668_1_,
                                  double p_186668_3_,
                                  double p_186668_5_,
                                  double p_186668_7_,
                                  double p_186668_9_,
                                  double p_186668_11_)
      • intersects

        public boolean intersects​(Vector3d p_189973_1_,
                                  Vector3d p_189973_2_)
      • contains

        public boolean contains​(Vector3d p_72318_1_)
      • contains

        public boolean contains​(double p_197744_1_,
                                double p_197744_3_,
                                double p_197744_5_)
      • getSize

        public double getSize()
      • getXsize

        public double getXsize()
      • getYsize

        public double getYsize()
      • getZsize

        public double getZsize()
      • getDirection

        @Nullable
        private static Direction getDirection​(AxisAlignedBB p_197741_0_,
                                              Vector3d p_197741_1_,
                                              double[] p_197741_2_,
                                              @Nullable
                                              Direction p_197741_3_,
                                              double p_197741_4_,
                                              double p_197741_6_,
                                              double p_197741_8_)
      • clipPoint

        @Nullable
        private static Direction clipPoint​(double[] p_197740_0_,
                                           @Nullable
                                           Direction p_197740_1_,
                                           double p_197740_2_,
                                           double p_197740_4_,
                                           double p_197740_6_,
                                           double p_197740_8_,
                                           double p_197740_10_,
                                           double p_197740_12_,
                                           double p_197740_14_,
                                           double p_197740_16_,
                                           Direction p_197740_18_,
                                           double p_197740_19_,
                                           double p_197740_21_,
                                           double p_197740_23_)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hasNaN

        public boolean hasNaN()
      • getCenter

        public Vector3d getCenter()
      • ofSize

        public static AxisAlignedBB ofSize​(double p_241550_0_,
                                           double p_241550_2_,
                                           double p_241550_4_)