java.lang.Object
com.github.retrooper.packetevents.protocol.world.BoundingBox

public class BoundingBox extends Object
  • Constructor Details

    • BoundingBox

      public BoundingBox()
    • BoundingBox

      public BoundingBox(double x1, double y1, double z1, double x2, double y2, double z2)
  • Method Details

    • of

      @NotNull public static @NotNull BoundingBox of(@NotNull @NotNull Vector3d corner1, @NotNull @NotNull Vector3d corner2)
    • of

      @NotNull public static @NotNull BoundingBox of(@NotNull @NotNull Vector3d center, double x, double y, double z)
    • deserialize

      @NotNull public static @NotNull BoundingBox deserialize(@NotNull @NotNull Map<String,Object> args)
    • resize

      @NotNull public @NotNull BoundingBox resize(double x1, double y1, double z1, double x2, double y2, double z2)
    • getMinX

      public double getMinX()
    • getMinY

      public double getMinY()
    • getMinZ

      public double getMinZ()
    • getMin

      @NotNull public @NotNull Vector3d getMin()
    • getMaxX

      public double getMaxX()
    • getMaxY

      public double getMaxY()
    • getMaxZ

      public double getMaxZ()
    • getMax

      @NotNull public @NotNull Vector3d getMax()
    • getWidthX

      public double getWidthX()
    • getWidthZ

      public double getWidthZ()
    • getHeight

      public double getHeight()
    • getVolume

      public double getVolume()
    • getCenterX

      public double getCenterX()
    • getCenterY

      public double getCenterY()
    • getCenterZ

      public double getCenterZ()
    • getCenter

      @NotNull public @NotNull Vector3d getCenter()
    • copy

      @NotNull public @NotNull BoundingBox copy(@NotNull @NotNull BoundingBox other)
    • expand

      @NotNull public @NotNull BoundingBox expand(double negativeX, double negativeY, double negativeZ, double positiveX, double positiveY, double positiveZ)
    • expand

      @NotNull public @NotNull BoundingBox expand(double x, double y, double z)
    • expand

      @NotNull public @NotNull BoundingBox expand(@NotNull @NotNull Vector3d expansion)
    • expand

      @NotNull public @NotNull BoundingBox expand(double expansion)
    • expand

      @NotNull public @NotNull BoundingBox expand(double dirX, double dirY, double dirZ, double expansion)
    • expand

      @NotNull public @NotNull BoundingBox expand(@NotNull @NotNull Vector3d direction, double expansion)
    • expandDirectional

      @NotNull public @NotNull BoundingBox expandDirectional(double dirX, double dirY, double dirZ)
    • expandDirectional

      @NotNull public @NotNull BoundingBox expandDirectional(@NotNull @NotNull Vector3d direction)
    • union

      @NotNull public @NotNull BoundingBox union(double posX, double posY, double posZ)
    • union

      @NotNull public @NotNull BoundingBox union(@NotNull @NotNull Vector3d position)
    • union

      @NotNull public @NotNull BoundingBox union(@NotNull @NotNull BoundingBox other)
    • intersection

      @NotNull public @NotNull BoundingBox intersection(@NotNull @NotNull BoundingBox other)
    • shift

      @NotNull public @NotNull BoundingBox shift(double shiftX, double shiftY, double shiftZ)
    • shift

      @NotNull public @NotNull BoundingBox shift(@NotNull @NotNull Vector3d shift)
    • overlaps

      public boolean overlaps(@NotNull @NotNull BoundingBox other)
    • overlaps

      public boolean overlaps(@NotNull @NotNull Vector3d min, @NotNull @NotNull Vector3d max)
    • contains

      public boolean contains(double x, double y, double z)
    • contains

      public boolean contains(@NotNull @NotNull Vector3d position)
    • contains

      public boolean contains(@NotNull @NotNull BoundingBox other)
    • contains

      public boolean contains(@NotNull @NotNull Vector3d min, @NotNull @NotNull Vector3d max)
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      @NotNull public @NotNull BoundingBox clone()
      Overrides:
      clone in class Object
    • serialize

      @NotNull public @NotNull Map<String,Object> serialize()