BBUReloaded
Toggle table of contents
0.1-BETA
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
BBUReloaded
BBUReloaded
/
me.imoltres.bbu.utils.world
/
Cuboid
Cuboid
public
class
Cuboid
implements
Iterable
<
Position
>
Construct a new cuboid that exists of 2 positions
Members
Constructors
Cuboid
Link copied to clipboard
public
void
Cuboid
(
Position
min
,
Position
max
)
Types
Serializer
Link copied to clipboard
public
class
Serializer
extends
TypeAdapter
<
Cuboid
>
Properties
max
Link copied to clipboard
public
Position
max
min
Link copied to clipboard
public
Position
min
Functions
contains
Link copied to clipboard
public
boolean
contains
(
Position
position
)
Returns true if the given Position is located within the bounds of this cuboid.
contents
Link copied to clipboard
public
List
<
Position
>
contents
(
)
Return all positions contained within this cuboid
corners
Link copied to clipboard
public
Array
<
Position
>
corners
(
)
Get the Blocks at the eight corners of the Cuboid.
for
Each
Link copied to clipboard
public
void
forEach
(
Consumer
<
? super
T
>
action
)
get
Bounding
Cuboid
Link copied to clipboard
public
Cuboid
getBoundingCuboid
(
Cuboid
other
)
Get the Cuboid big enough to hold both this Cuboid and the given one.
get
Center
Link copied to clipboard
public
Position
getCenter
(
)
Get the center of the Cuboid
get
Height
Link copied to clipboard
public
double
getHeight
(
)
Returns the cuboid height on the Y axis
get
Lower
X
Link copied to clipboard
public
double
getLowerX
(
)
Get the minimum X co-ordinate of this Cuboid
get
Lower
Y
Link copied to clipboard
public
double
getLowerY
(
)
Get the minimum Y co-ordinate of this Cuboid
get
Lower
Z
Link copied to clipboard
public
double
getLowerZ
(
)
Get the minimum Z co-ordinate of this Cuboid
get
Max
Link copied to clipboard
public
Position
getMax
(
)
get
Min
Link copied to clipboard
public
Position
getMin
(
)
get
Size
X
Link copied to clipboard
public
double
getSizeX
(
)
Get the size of this Cuboid along the X axis
get
Size
Y
Link copied to clipboard
public
double
getSizeY
(
)
Get the size of this Cuboid along the Y axis
get
Size
Z
Link copied to clipboard
public
double
getSizeZ
(
)
Get the size of this Cuboid along the Z axis
get
Upper
X
Link copied to clipboard
public
double
getUpperX
(
)
Get the maximum X co-ordinate of this Cuboid
get
Upper
Y
Link copied to clipboard
public
double
getUpperY
(
)
Get the maximum Y co-ordinate of this Cuboid
get
Upper
Z
Link copied to clipboard
public
double
getUpperZ
(
)
Get the maximum Z co-ordinate of this Cuboid
get
Width
X
Link copied to clipboard
public
double
getWidthX
(
)
Returns the cuboid width on the X axis
get
Width
Z
Link copied to clipboard
public
double
getWidthZ
(
)
Returns the cuboid width on the Z axis
grow
Link copied to clipboard
public
Cuboid
grow
(
double delta
)
Returns a grown version of this cuboid
public
Cuboid
grow
(
double x
,
double y
,
double z
)
Return a grown version of this cuboid
iterator
Link copied to clipboard
public
Iterator
<
Position
>
iterator
(
)
random
Position
Link copied to clipboard
public
Position
randomPosition
(
)
Returns a random position from this Cuboid
set
Max
Link copied to clipboard
public
void
setMax
(
Position
max
)
set
Min
Link copied to clipboard
public
void
setMin
(
Position
min
)
shrink
Link copied to clipboard
public
Cuboid
shrink
(
double delta
)
Returns a shrunken version of this cuboid
public
Cuboid
shrink
(
double x
,
double y
,
double z
)
Return a shrunken version of this cuboid
spliterator
Link copied to clipboard
public
Spliterator
<
T
>
spliterator
(
)
to
String
Link copied to clipboard
public
String
toString
(
)
volume
Link copied to clipboard
public
double
volume
(
)
Get the volume of this Cuboid.