|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.plugin.java.JavaPlugin
com.nisovin.MagicSpells.MagicSpells
public class MagicSpells
| Field Summary | |
|---|---|
protected static int |
broadcastRange
|
static java.util.List<java.lang.String> |
castForFree
|
protected static java.util.List<java.lang.String> |
castNoCooldown
|
protected static boolean |
debug
|
protected static boolean |
enableManaBars
|
protected static boolean |
ignoreDefaultBindings
|
protected static java.util.HashMap<org.bukkit.event.Event.Type,java.util.HashSet<Spell>> |
listeners
|
protected static java.util.List<java.lang.Integer> |
losTransparentBlocks
|
protected static ManaBarManager |
mana
|
protected static org.bukkit.ChatColor |
manaBarColorEmpty
|
protected static org.bukkit.ChatColor |
manaBarColorFull
|
protected static java.lang.String |
manaBarPrefix
|
protected static int |
manaBarSize
|
protected static int |
manaBarToolSlot
|
protected static int |
manaPotionCooldown
|
protected static java.util.HashMap<org.bukkit.entity.Player,java.lang.Long> |
manaPotionCooldowns
|
protected static java.util.HashMap<org.bukkit.material.MaterialData,java.lang.Integer> |
manaPotions
|
protected static int |
manaRegenPercent
|
protected static int |
manaRegenTickRate
|
protected static int |
maxMana
|
protected static NoMagicZoneManager |
noMagicZones
|
protected static boolean |
opsHaveAllSpells
|
static MagicSpells |
plugin
|
protected static boolean |
showManaOnRegen
|
protected static boolean |
showManaOnUse
|
protected static boolean |
showManaOnWoodTool
|
protected static java.util.HashMap<java.lang.String,Spellbook> |
spellbooks
|
protected static java.util.HashMap<java.lang.String,Spell> |
spellNames
|
protected static java.util.HashMap<java.lang.String,Spell> |
spells
|
protected static java.lang.String |
strCantCast
|
protected static java.lang.String |
strCastUsage
|
static java.lang.String |
strConsoleName
|
protected static java.lang.String |
strManaPotionOnCooldown
|
static java.lang.String |
strMissingReagents
|
protected static java.lang.String |
strNoMagicZone
|
protected static java.lang.String |
strOnCooldown
|
protected static java.lang.String |
strSpellChange
|
protected static java.lang.String |
strUnknownSpell
|
protected static org.bukkit.ChatColor |
textColor
|
| Constructor Summary | |
|---|---|
MagicSpells()
|
|
| Method Summary | |
|---|---|
protected static void |
addSpellListener(org.bukkit.event.Event.Type eventType,
Spell spell)
|
static void |
debug(java.lang.String message)
Writes a debug message to the console if the debug option is enabled. |
static MagicSpells |
getInstance()
Gets the instance of the MagicSpells plugin |
static Spellbook |
getSpellbook(org.bukkit.entity.Player player)
Gets a player's spellbook, which contains known spells and handles spell permissions. |
static Spell |
getSpellByInGameName(java.lang.String spellName)
Gets a spell by its in-game name (the name specified with the 'name' config option) |
static Spell |
getSpellByInternalName(java.lang.String spellName)
Gets a spell by its internal name (the key name in the config file) |
boolean |
onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command command,
java.lang.String label,
java.lang.String[] args)
|
void |
onDisable()
|
void |
onEnable()
|
protected static void |
removeSpellListener(org.bukkit.event.Event.Type eventType,
Spell spell)
|
static boolean |
teachSpell(org.bukkit.entity.Player player,
java.lang.String spellName)
Teaches a player a spell (adds it to their spellbook) |
| Methods inherited from class org.bukkit.plugin.java.JavaPlugin |
|---|
getClassLoader, getCommand, getConfiguration, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getPluginLoader, getServer, initialize, installDDL, isEnabled, isInitialized, isNaggable, onLoad, removeDDL, setEnabled, setNaggable, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static MagicSpells plugin
protected static boolean debug
protected static org.bukkit.ChatColor textColor
protected static int broadcastRange
protected static boolean opsHaveAllSpells
public static java.util.List<java.lang.String> castForFree
protected static java.util.List<java.lang.String> castNoCooldown
protected static boolean ignoreDefaultBindings
protected static java.util.List<java.lang.Integer> losTransparentBlocks
protected static boolean enableManaBars
protected static int maxMana
protected static java.lang.String manaBarPrefix
protected static int manaBarSize
protected static org.bukkit.ChatColor manaBarColorFull
protected static org.bukkit.ChatColor manaBarColorEmpty
protected static int manaRegenTickRate
protected static int manaRegenPercent
protected static boolean showManaOnUse
protected static boolean showManaOnRegen
protected static boolean showManaOnWoodTool
protected static int manaBarToolSlot
protected static int manaPotionCooldown
protected static java.lang.String strManaPotionOnCooldown
protected static java.util.HashMap<org.bukkit.material.MaterialData,java.lang.Integer> manaPotions
protected static java.lang.String strCastUsage
protected static java.lang.String strUnknownSpell
protected static java.lang.String strSpellChange
protected static java.lang.String strOnCooldown
public static java.lang.String strMissingReagents
protected static java.lang.String strCantCast
protected static java.lang.String strNoMagicZone
public static java.lang.String strConsoleName
protected static java.util.HashMap<java.lang.String,Spell> spells
protected static java.util.HashMap<java.lang.String,Spell> spellNames
protected static java.util.HashMap<java.lang.String,Spellbook> spellbooks
protected static java.util.HashMap<org.bukkit.event.Event.Type,java.util.HashSet<Spell>> listeners
protected static ManaBarManager mana
protected static java.util.HashMap<org.bukkit.entity.Player,java.lang.Long> manaPotionCooldowns
protected static NoMagicZoneManager noMagicZones
| Constructor Detail |
|---|
public MagicSpells()
| Method Detail |
|---|
public void onEnable()
protected static void addSpellListener(org.bukkit.event.Event.Type eventType,
Spell spell)
protected static void removeSpellListener(org.bukkit.event.Event.Type eventType,
Spell spell)
public boolean onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command command,
java.lang.String label,
java.lang.String[] args)
onCommand in interface org.bukkit.command.CommandExecutoronCommand in class org.bukkit.plugin.java.JavaPluginpublic static MagicSpells getInstance()
public static Spell getSpellByInternalName(java.lang.String spellName)
spellName - the internal name of the spell to find
public static Spell getSpellByInGameName(java.lang.String spellName)
spellName - the in-game name of the spell to find
public static Spellbook getSpellbook(org.bukkit.entity.Player player)
player - the player to get a spellbook for
public static void debug(java.lang.String message)
message - the message to write to the console
public static boolean teachSpell(org.bukkit.entity.Player player,
java.lang.String spellName)
player - the player to teachspellName - the spell name, either the in-game name or the internal name
public void onDisable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||