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
/
Ray
Ray
public
class
Ray
extends
Shape
Members
Constructors
Ray
Link copied to clipboard
public
void
Ray
(
boolean ignoresSolidBlocks
,
double pointRadius
,
Location
centerLocation
,
Location
initialTargetLocation
)
Properties
center
Location
Link copied to clipboard
protected
Location
centerLocation
current
Source
Link copied to clipboard
protected
Location
currentSource
current
Target
Link copied to clipboard
protected
Location
currentTarget
ignores
Solid
Blocks
Link copied to clipboard
protected
final
boolean
ignoresSolidBlocks
initial
Target
Location
Link copied to clipboard
protected
Location
initialTargetLocation
locations
Link copied to clipboard
protected
List
<
Location
>
locations
max
Distance
Link copied to clipboard
protected
final
double
maxDistance
thickness
Link copied to clipboard
protected
double
thickness
Functions
border
Contains
Link copied to clipboard
public
boolean
borderContains
(
Location
position
)
public
boolean
borderContains
(
LivingEntity
livingEntity
)
contains
Link copied to clipboard
public
boolean
contains
(
Location
position
)
public
boolean
contains
(
LivingEntity
livingEntity
)
draw
Line
Link copied to clipboard
protected
List
<
Location
>
drawLine
(
Location
location1
,
Location
location2
)
get
Center
Link copied to clipboard
public
Location
getCenter
(
)
get
Edge
Locations
Link copied to clipboard
public
List
<
Location
>
getEdgeLocations
(
)
get
Locations
Link copied to clipboard
public
List
<
Location
>
getLocations
(
)
visualize
Link copied to clipboard
public
void
visualize
(
Particle
particle
)