Nightbreak Java API
Toggle table of contents
JVM
Target filter
JVM
Switch theme
Search in API
Skip to content
Nightbreak Java API
MagmaCore
/
com.magmaguy.magmacore.scripting.zones
/
Cone
Cone
public
class
Cone
extends
Shape
Members
Constructors
Cone
Link copied to clipboard
public
void
Cone
(
Location
top
,
Location
bottom
,
double baseRadius
,
double borderRadius
)
Constructs a Cone shape.
Properties
edge
Locations
Link copied to clipboard
public
List
<
Location
>
edgeLocations
Functions
border
Contains
Link copied to clipboard
public
boolean
borderContains
(
Location
position
)
Determines if a location is on the "border" of the cone.
public
boolean
borderContains
(
LivingEntity
livingEntity
)
contains
Link copied to clipboard
public
boolean
contains
(
Location
position
)
Checks whether a given location is inside the cone.
public
boolean
contains
(
LivingEntity
livingEntity
)
For a living entity we test multiple points along the entity's bounding box.
get
Center
Link copied to clipboard
public
Location
getCenter
(
)
The center of the cone is defined as the midpoint between the top and bottom.
get
Edge
Locations
Link copied to clipboard
public
List
<
Location
>
getEdgeLocations
(
)
Returns the edge (border) locations of the cone.
get
Locations
Link copied to clipboard
public
List
<
Location
>
getLocations
(
)
Returns all the locations inside the cone.
visualize
Link copied to clipboard
public
void
visualize
(
Particle
particle
)
Visualizes the cone by spawning a particle at every location within the cone.