类 AABB

java.lang.Object
net.minecraft.world.phys.AABB

public class AABB extends Object
  • 字段详细资料

    • EPSILON

      private static final double EPSILON
      另请参阅:
    • 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
  • 构造器详细资料

    • AABB

      public AABB(double pX1, double pY1, double pZ1, double pX2, double pY2, double pZ2)
    • AABB

      public AABB(BlockPos pPos)
    • AABB

      public AABB(BlockPos pStart, BlockPos pEnd)
    • AABB

      public AABB(Vec3 pStart, Vec3 pEnd)
  • 方法详细资料

    • of

      public static AABB of(BoundingBox pMutableBox)
    • unitCubeFromLowerCorner

      public static AABB unitCubeFromLowerCorner(Vec3 pVector)
    • setMinX

      public AABB setMinX(double pMinX)
    • setMinY

      public AABB setMinY(double pMinY)
    • setMinZ

      public AABB setMinZ(double pMinZ)
    • setMaxX

      public AABB setMaxX(double pMaxX)
    • setMaxY

      public AABB setMaxY(double pMaxY)
    • setMaxZ

      public AABB setMaxZ(double pMaxZ)
    • min

      public double min(Direction.Axis pAxis)
    • max

      public double max(Direction.Axis pAxis)
    • equals

      public boolean equals(Object pOther)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • contract

      public AABB contract(double pX, double pY, double pZ)
    • expandTowards

      public AABB expandTowards(Vec3 pVector)
    • expandTowards

      public AABB expandTowards(double pX, double pY, double pZ)
    • inflate

      public AABB inflate(double pX, double pY, double pZ)
    • inflate

      public AABB inflate(double pValue)
    • intersect

      public AABB intersect(AABB pOther)
    • minmax

      public AABB minmax(AABB pOther)
    • move

      public AABB move(double pX, double pY, double pZ)
    • move

      public AABB move(BlockPos pPos)
    • move

      public AABB move(Vec3 pVec)
    • intersects

      public boolean intersects(AABB pOther)
    • intersects

      public boolean intersects(double pX1, double pY1, double pZ1, double pX2, double pY2, double pZ2)
    • intersects

      public boolean intersects(Vec3 pMin, Vec3 pMax)
    • contains

      public boolean contains(Vec3 pVec)
    • contains

      public boolean contains(double pX, double pY, double pZ)
    • getSize

      public double getSize()
    • getXsize

      public double getXsize()
    • getYsize

      public double getYsize()
    • getZsize

      public double getZsize()
    • deflate

      public AABB deflate(double pX, double pY, double pZ)
    • deflate

      public AABB deflate(double pValue)
    • clip

      public Optional<Vec3> clip(Vec3 pFrom, Vec3 pTo)
    • clip

      @Nullable public static BlockHitResult clip(Iterable<AABB> pBoxes, Vec3 pStart, Vec3 pEnd, BlockPos pPos)
    • getDirection

      @Nullable private static Direction getDirection(AABB pAabb, Vec3 pStart, double[] pMinDistance, @Nullable Direction pFacing, double pDeltaX, double pDeltaY, double pDeltaZ)
    • clipPoint

      @Nullable private static Direction clipPoint(double[] pMinDistance, @Nullable Direction pPrevDirection, double pDistanceSide, double pDistanceOtherA, double pDistanceOtherB, double pMinSide, double pMinOtherA, double pMaxOtherA, double pMinOtherB, double pMaxOtherB, Direction pHitSide, double pStartSide, double pStartOtherA, double pStartOtherB)
    • distanceToSqr

      public double distanceToSqr(Vec3 pVec)
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • hasNaN

      public boolean hasNaN()
    • getCenter

      public Vec3 getCenter()
    • ofSize

      public static AABB ofSize(Vec3 pCenter, double pXSize, double pYSize, double pZSize)