public class Ollivanders
extends org.bukkit.plugin.java.JavaPlugin
Modifier and Type | Class and Description |
---|---|
static class |
Ollivanders.SLAPI
SLAPI = Saving/Loading API
API for Saving and Loading Objects.
|
Constructor and Description |
---|
Ollivanders() |
Modifier and Type | Method and Description |
---|---|
void |
addProjectile(SpellProjectile s) |
void |
addStationary(StationarySpellObj s)
Adds a stationary spell object to plugin stationary spell ojbect list
|
boolean |
canCast(org.bukkit.entity.Player player,
Spells spell,
boolean verbose)
Can this player cast this spell?
|
boolean |
canLive(org.bukkit.Location loc,
Spells spell) |
java.util.List<StationarySpellObj> |
checkForStationary(org.bukkit.Location location)
Checks if the location is within one or more stationary spell objects, regardless of whether or not they are active.
|
static boolean |
destinedWand(org.bukkit.entity.Player player,
org.bukkit.inventory.ItemStack stack)
Is this itemstack the player's destined wand?
|
int |
getChatDistance() |
org.bukkit.configuration.file.FileConfiguration |
getFileConfig()
Get the file configuration
|
OPlayer |
getOPlayer(org.bukkit.entity.Player p)
Gets the OPlayer associated with the Player
|
java.util.Map<java.util.UUID,OPlayer> |
getOPlayerMap() |
java.util.List<SpellProjectile> |
getProjectiles() |
java.util.Set<Prophecy> |
getProphecy()
Gets the set of prophecy objects
|
int |
getSpellNum(org.bukkit.entity.Player player,
Spells spell)
Get's the spell count associated with a player's spell.
|
java.util.List<StationarySpellObj> |
getStationary()
Gets the list of stationary spell objects
|
java.util.List<org.bukkit.block.Block> |
getTempBlocks()
Gets the tempBlocks list.
|
int |
incSpellCount(org.bukkit.entity.Player player,
Spells s) |
boolean |
isBroom(org.bukkit.inventory.ItemStack item)
Finds out if an item is a broom.
|
boolean |
isInsideOf(StationarySpells statName,
org.bukkit.Location loc) |
static boolean |
isWand(org.bukkit.inventory.ItemStack stack)
Is this item stack a wand?
|
boolean |
onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command cmd,
java.lang.String commandLabel,
java.lang.String[] args) |
void |
onDisable() |
void |
onEnable() |
void |
remProjectile(SpellProjectile s) |
void |
remStationary(StationarySpellObj s)
Removes a stationary spell object from plugin's stationary list
|
void |
setOPlayer(org.bukkit.entity.Player p,
OPlayer player)
Sets the player's OPlayer by their playername
|
void |
setOPlayerMap(java.util.Map<java.util.UUID,OPlayer> m) |
void |
setSpellNum(org.bukkit.entity.Player player,
Spells spell,
int i) |
getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, isEnabled, isInitialized, isNaggable, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable, toString
public void onDisable()
onDisable
in interface org.bukkit.plugin.Plugin
onDisable
in class org.bukkit.plugin.java.JavaPlugin
public void onEnable()
onEnable
in interface org.bukkit.plugin.Plugin
onEnable
in class org.bukkit.plugin.java.JavaPlugin
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, java.lang.String commandLabel, java.lang.String[] args)
onCommand
in interface org.bukkit.command.CommandExecutor
onCommand
in class org.bukkit.plugin.java.JavaPlugin
public java.util.Map<java.util.UUID,OPlayer> getOPlayerMap()
public void setOPlayerMap(java.util.Map<java.util.UUID,OPlayer> m)
public int getChatDistance()
public java.util.List<SpellProjectile> getProjectiles()
public void addProjectile(SpellProjectile s)
public void remProjectile(SpellProjectile s)
public int getSpellNum(org.bukkit.entity.Player player, Spells spell)
player
- spell
- public void setSpellNum(org.bukkit.entity.Player player, Spells spell, int i)
public int incSpellCount(org.bukkit.entity.Player player, Spells s)
public OPlayer getOPlayer(org.bukkit.entity.Player p)
p
- Playerpublic void setOPlayer(org.bukkit.entity.Player p, OPlayer player)
p
- the playerplayer
- the OPlayer associated with the playerpublic java.util.List<StationarySpellObj> getStationary()
public java.util.Set<Prophecy> getProphecy()
public void addStationary(StationarySpellObj s)
s
- - StationarySpellObj to be added to list. Cannot be null.public void remStationary(StationarySpellObj s)
s
- - StationarySpellObj to be removed. Cannot be null.public java.util.List<StationarySpellObj> checkForStationary(org.bukkit.Location location)
location
- - location to checkpublic java.util.List<org.bukkit.block.Block> getTempBlocks()
public boolean isInsideOf(StationarySpells statName, org.bukkit.Location loc)
public boolean canCast(org.bukkit.entity.Player player, Spells spell, boolean verbose)
player
- - Player to checkspell
- - Spell to checkverbose
- - Whether or not to inform the player of why they cannot cast a spellpublic boolean canLive(org.bukkit.Location loc, Spells spell)
public org.bukkit.configuration.file.FileConfiguration getFileConfig()
public static boolean isWand(org.bukkit.inventory.ItemStack stack)
stack
- - stack to be checkedpublic static boolean destinedWand(org.bukkit.entity.Player player, org.bukkit.inventory.ItemStack stack)
player
- - Player to check the stack against.stack
- - Itemstack to be checkedpublic boolean isBroom(org.bukkit.inventory.ItemStack item)
item
- - Item in question.