Constructor and Description |
---|
ExperienceMod() |
Modifier and Type | Method and Description |
---|---|
ActionTypes |
getActionTypes()
Retrieves the current registered action types.
|
AutoUpdate |
getAutoUpdate()
Retrieves the object responsible for notifying of new updates.
|
ChannelProvider |
getChannelProvider() |
net.milkbowl.vault.chat.Chat |
getChat() |
ConfigurationLoader |
getConfigLoader()
Retrieves the object responsible for parsing and loading configuration files.
|
CustomBlockProviders |
getCustomBlockProvider() |
DataCollector |
getDataCollector() |
net.milkbowl.vault.economy.Economy |
getEconomy() |
GlobalSettings |
getGlobalSettings()
Retrieves the global plugin settings.
|
HistoryProviders |
getHistoryProviders()
Gets the registry of history plugins.
|
ExperienceInformerListener |
getInformer() |
ItemRewardListener |
getItemListener() |
java.util.List<Action> |
getMobReward(org.bukkit.entity.Player killer,
MobQuery query)
Retrieves a list of action rewards that applies when a mob is killed, either by the environment (when KILLER is NULL),
or by a player.
|
java.util.List<Action> |
getPlayerReward(org.bukkit.entity.Player player,
java.lang.Integer trigger,
Query query)
Retrieves a list of action rewards that applies when a player performs a given action to the item or block
specified by the query.
|
PlayerScheduler |
getPlayerScheduler() |
Presets |
getPresets() |
RewardProvider |
getRewardProvider() |
boolean |
isDebugEnabled()
Whether or not a debug mode is enabled.
|
org.bukkit.configuration.file.YamlConfiguration |
loadConfig(java.lang.String name,
java.lang.String createMessage) |
void |
loadDefaults(boolean reload)
Reloads (if reload is TRUE) configurations.
|
void |
onDisable() |
void |
onEnable() |
void |
onLoad() |
void |
onServerTick()
Invoked every server tick.
|
void |
printDebug(java.lang.Object sender,
java.lang.String message,
java.lang.Object... params)
Prints or logs a debug message.
|
void |
printWarning(java.lang.Object sender,
java.lang.String message,
java.lang.Object... params)
Prints or logs a warning.
|
void |
processInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event,
BlockResponse response)
Handles the given inventory event using the default behavior for the given inventory type.
|
void |
respond(org.bukkit.command.CommandSender sender,
java.lang.String message) |
void |
setConfigLoader(ConfigurationLoader configLoader)
Sets the object responsible for parsing and loading configuration files.
|
void |
setHistoryProviders(HistoryProviders historyProviders)
Sets the registry of history plugins.
|
void |
toggleDebug()
Toggles debug messages.
|
getClassLoader, getCommand, getConfig, getDatabase, getDatabaseClasses, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPluginLoader, getResource, getServer, initialize, installDDL, isEnabled, isInitialized, isNaggable, onCommand, reloadConfig, removeDDL, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
public void onLoad()
onLoad
in interface org.bukkit.plugin.Plugin
onLoad
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 void onDisable()
onDisable
in interface org.bukkit.plugin.Plugin
onDisable
in class org.bukkit.plugin.java.JavaPlugin
public org.bukkit.configuration.file.YamlConfiguration loadConfig(java.lang.String name, java.lang.String createMessage) throws java.io.IOException
java.io.IOException
public void loadDefaults(boolean reload) throws java.io.IOException
reload
- - if TRUE; reload configuration.java.io.IOException
- An I/O error occurred.public void onServerTick()
public boolean isDebugEnabled()
Debugger
isDebugEnabled
in interface Debugger
public void toggleDebug()
public net.milkbowl.vault.chat.Chat getChat()
public net.milkbowl.vault.economy.Economy getEconomy()
public ExperienceInformerListener getInformer()
public RewardProvider getRewardProvider()
public ChannelProvider getChannelProvider()
public CustomBlockProviders getCustomBlockProvider()
public ConfigurationLoader getConfigLoader()
public void setConfigLoader(ConfigurationLoader configLoader)
configLoader
- - the new configuration loader.public HistoryProviders getHistoryProviders()
public void setHistoryProviders(HistoryProviders historyProviders)
historyProviders
- - new registry of history plugins.public ItemRewardListener getItemListener()
public Presets getPresets()
public PlayerScheduler getPlayerScheduler()
public GlobalSettings getGlobalSettings()
public ActionTypes getActionTypes()
public DataCollector getDataCollector()
public AutoUpdate getAutoUpdate()
public java.util.List<Action> getMobReward(org.bukkit.entity.Player killer, MobQuery query) throws ParsingException
Note that the returned list contains every possible reward that matches the given mob. In reality, only the first item will be awarded.
killer
- - the player that killed this mob, or NULL if the mob died naturally.query
- - query representing the mob that was killed.ParsingException
- If the stored preset option associated with the killer is malformed.public java.util.List<Action> getPlayerReward(org.bukkit.entity.Player player, java.lang.Integer trigger, Query query) throws ParsingException
The query must be a ItemQuery for every trigger except brewing, where it also can be a PotionQuery.
Also note that this list contains every possible reward that matches the given parameters. In reality, only the first item will be awarded.
player
- - player performing the given action, or NULL if the default configuration file should be used.trigger
- - action the player performs.query
- - query representing the item or block that was the target of the action.ParsingException
- If the stored preset option associated with this player is malformed.public void processInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event, BlockResponse response)
event
- - inventory click event.response
- - block response detailing how to process the inventory.public void printDebug(java.lang.Object sender, java.lang.String message, java.lang.Object... params)
Debugger
printDebug
in interface Debugger
sender
- - the object that sent this message.message
- - the format of the debug message to send.params
- - the parameters to include in the debug message.public void respond(org.bukkit.command.CommandSender sender, java.lang.String message)
public void printWarning(java.lang.Object sender, java.lang.String message, java.lang.Object... params)
Debugger
printWarning
in interface Debugger
sender
- - the object that sent this message.message
- - the format of the warning message to send.params
- - the parameters to include in the warning message.