public class Spells
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Spells.SpellType |
Constructor and Description |
---|
Spells() |
Modifier and Type | Method and Description |
---|---|
static void |
executeSpell(Spells.SpellType spellType,
org.bukkit.Location location)
Execute spell on hit
|
static Spells.SpellType |
getPlayerSpells(org.bukkit.entity.Player p)
Get a player spells preferences.
|
static java.util.HashMap<org.bukkit.entity.Player,Spells.SpellType> |
getSpellByPlayer()
Get the preferences list
|
static boolean |
hasSpells(org.bukkit.entity.Player p)
Check if a player have arrow spells preferences
|
static void |
setPlayerSpells(org.bukkit.entity.Player p,
Spells.SpellType spellType)
Save spells preferences for a player
If the player is already in the preferences list it will be replaced.
|
public static java.util.HashMap<org.bukkit.entity.Player,Spells.SpellType> getSpellByPlayer()
public static boolean hasSpells(org.bukkit.entity.Player p)
public static Spells.SpellType getPlayerSpells(org.bukkit.entity.Player p)
Spells.SpellType
public static void setPlayerSpells(org.bukkit.entity.Player p, Spells.SpellType spellType)
public static void executeSpell(Spells.SpellType spellType, org.bukkit.Location location)