public abstract class StationarySpellObj
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
active |
int |
duration |
boolean |
kill |
OLocation |
location |
StationarySpells |
name |
java.util.UUID |
playerUUID |
int |
radius |
Constructor and Description |
---|
StationarySpellObj(org.bukkit.entity.Player player,
org.bukkit.Location location,
StationarySpells name,
java.lang.Integer radius,
java.lang.Integer duration) |
Modifier and Type | Method and Description |
---|---|
void |
age()
Ages the StationarySpellObj
|
void |
age(int i)
Ages the StationarySpellObj
|
void |
flair(double d)
Makes a particle effect at all points along the radius of
spell and at spell loc
|
org.bukkit.block.Block |
getBlock()
Gets the block the projectile is inside
|
java.util.Set<org.bukkit.block.Block> |
getBlocksInRadius(org.bukkit.Location loc,
double radius)
Gets the blocks in a radius of a location.
|
java.util.List<org.bukkit.entity.Entity> |
getCloseEntities()
Gets entities within radius of stationary spell
|
java.util.List<org.bukkit.entity.Item> |
getItems()
Gets item entities within radius of the projectile
|
java.util.List<org.bukkit.entity.LivingEntity> |
getLivingEntities()
Gets all LivingEntity within radius of projectile
|
java.util.UUID |
getPlayerUUID() |
boolean |
holdsWand(org.bukkit.entity.Player player)
Does the player hold a wand item?
|
boolean |
isInside(org.bukkit.Location loc)
Is the location specified inside the object's radius?
|
void |
kill()
This kills the stationarySpellObj.
|
public java.util.UUID playerUUID
public StationarySpells name
public OLocation location
public int duration
public boolean kill
public int radius
public boolean active
public StationarySpellObj(org.bukkit.entity.Player player, org.bukkit.Location location, StationarySpells name, java.lang.Integer radius, java.lang.Integer duration)
public void age()
public void age(int i)
i
- - amount to agepublic void kill()
public boolean isInside(org.bukkit.Location loc)
loc
- - The location specified.public org.bukkit.block.Block getBlock()
public java.util.List<org.bukkit.entity.Entity> getCloseEntities()
public java.util.List<org.bukkit.entity.Item> getItems()
public java.util.List<org.bukkit.entity.LivingEntity> getLivingEntities()
public void flair(double d)
d
- - Intensity of the flair. If greater than 10, is reduced to 10.public boolean holdsWand(org.bukkit.entity.Player player)
player
- - Player to check.public java.util.Set<org.bukkit.block.Block> getBlocksInRadius(org.bukkit.Location loc, double radius)
loc
- - The Location that is the center of the block listradius
- - The radius of the block listpublic java.util.UUID getPlayerUUID()