Class BoundingBox
java.lang.Object
com.github.retrooper.packetevents.protocol.world.BoundingBox
-
Constructor Summary
ConstructorsConstructorDescriptionBoundingBox(double x1, double y1, double z1, double x2, double y2, double z2) -
Method Summary
Modifier and TypeMethodDescription@NotNull BoundingBoxclone()booleancontains(double x, double y, double z) booleancontains(@NotNull BoundingBox other) booleanboolean@NotNull BoundingBoxcopy(@NotNull BoundingBox other) static @NotNull BoundingBoxdeserialize(@NotNull Map<String, Object> args) boolean@NotNull BoundingBoxexpand(double expansion) @NotNull BoundingBoxexpand(double x, double y, double z) @NotNull BoundingBoxexpand(double dirX, double dirY, double dirZ, double expansion) @NotNull BoundingBoxexpand(double negativeX, double negativeY, double negativeZ, double positiveX, double positiveY, double positiveZ) @NotNull BoundingBox@NotNull BoundingBox@NotNull BoundingBoxexpandDirectional(double dirX, double dirY, double dirZ) @NotNull BoundingBoxexpandDirectional(@NotNull Vector3d direction) @NotNull Vector3ddoubledoubledoubledouble@NotNull Vector3dgetMax()doublegetMaxX()doublegetMaxY()doublegetMaxZ()@NotNull Vector3dgetMin()doublegetMinX()doublegetMinY()doublegetMinZ()doubledoubledoubleinthashCode()@NotNull BoundingBoxintersection(@NotNull BoundingBox other) static @NotNull BoundingBoxstatic @NotNull BoundingBoxbooleanoverlaps(@NotNull BoundingBox other) boolean@NotNull BoundingBoxresize(double x1, double y1, double z1, double x2, double y2, double z2) @NotNull BoundingBoxshift(double shiftX, double shiftY, double shiftZ) @NotNull BoundingBoxtoString()@NotNull BoundingBoxunion(double posX, double posY, double posZ) @NotNull BoundingBoxunion(@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
-