Class BoundingBox
java.lang.Object
com.github.retrooper.packetevents.protocol.world.BoundingBox
-
Constructor Summary
ConstructorDescriptionBoundingBox
(double x1, double y1, double z1, double x2, double y2, double z2) -
Method Summary
Modifier and TypeMethodDescription@NotNull BoundingBox
clone()
boolean
contains
(double x, double y, double z) boolean
contains
(@NotNull BoundingBox other) boolean
boolean
@NotNull BoundingBox
copy
(@NotNull BoundingBox other) static @NotNull BoundingBox
deserialize
(@NotNull Map<String, Object> args) boolean
@NotNull BoundingBox
expand
(double expansion) @NotNull BoundingBox
expand
(double x, double y, double z) @NotNull BoundingBox
expand
(double dirX, double dirY, double dirZ, double expansion) @NotNull BoundingBox
expand
(double negativeX, double negativeY, double negativeZ, double positiveX, double positiveY, double positiveZ) @NotNull BoundingBox
@NotNull BoundingBox
@NotNull BoundingBox
expandDirectional
(double dirX, double dirY, double dirZ) @NotNull BoundingBox
expandDirectional
(@NotNull Vector3d direction) @NotNull Vector3d
double
double
double
double
@NotNull Vector3d
getMax()
double
getMaxX()
double
getMaxY()
double
getMaxZ()
@NotNull Vector3d
getMin()
double
getMinX()
double
getMinY()
double
getMinZ()
double
double
double
int
hashCode()
@NotNull BoundingBox
intersection
(@NotNull BoundingBox other) static @NotNull BoundingBox
static @NotNull BoundingBox
boolean
overlaps
(@NotNull BoundingBox other) boolean
@NotNull BoundingBox
resize
(double x1, double y1, double z1, double x2, double y2, double z2) @NotNull BoundingBox
shift
(double shiftX, double shiftY, double shiftZ) @NotNull BoundingBox
toString()
@NotNull BoundingBox
union
(double posX, double posY, double posZ) @NotNull BoundingBox
union
(@NotNull BoundingBox other) @NotNull BoundingBox
-
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
-
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
-
getMaxX
public double getMaxX() -
getMaxY
public double getMaxY() -
getMaxZ
public double getMaxZ() -
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
-
copy
-
expand
@NotNull public @NotNull BoundingBox expand(double negativeX, double negativeY, double negativeZ, double positiveX, double positiveY, double positiveZ) -
expand
-
expand
-
expand
-
expand
@NotNull public @NotNull BoundingBox expand(double dirX, double dirY, double dirZ, double expansion) -
expand
-
expandDirectional
-
expandDirectional
-
union
-
union
-
union
-
intersection
-
shift
-
shift
-
overlaps
-
overlaps
-
contains
public boolean contains(double x, double y, double z) -
contains
-
contains
-
contains
-
hashCode
public int hashCode() -
equals
-
toString
-
clone
-
serialize
-