Class AxisAlignedBB

java.lang.Object
net.minecraft.util.math.AxisAlignedBB

public class AxisAlignedBB extends Object
  • Field Details

    • 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 Details

    • 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 Details

    • of

      public static AxisAlignedBB of(MutableBoundingBox p_216363_0_)
    • unitCubeFromLowerCorner

      public static AxisAlignedBB unitCubeFromLowerCorner(Vector3d p_241549_0_)
    • min

      public double min(Direction.Axis p_197745_1_)
    • max

      public double max(Direction.Axis p_197742_1_)
    • equals

      public boolean equals(Object p_equals_1_)
      Overrides:
      equals in class Object
    • hashCode

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

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

      public AxisAlignedBB expandTowards(Vector3d p_216361_1_)
    • 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_)
    • inflate

      public AxisAlignedBB inflate(double p_186662_1_)
    • intersect

      public AxisAlignedBB intersect(AxisAlignedBB p_191500_1_)
    • minmax

      public AxisAlignedBB minmax(AxisAlignedBB p_111270_1_)
    • move

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

      public AxisAlignedBB move(BlockPos p_186670_1_)
    • move

      public AxisAlignedBB move(Vector3d p_191194_1_)
    • 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()
    • deflate

      public AxisAlignedBB deflate(double p_186664_1_)
    • clip

      public Optional<Vector3d> clip(Vector3d p_216365_1_, Vector3d p_216365_2_)
    • clip

      @Nullable public static BlockRayTraceResult clip(Iterable<AxisAlignedBB> p_197743_0_, Vector3d p_197743_1_, Vector3d p_197743_2_, BlockPos p_197743_3_)
    • 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 String toString()
      Overrides:
      toString in class 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_)