public class ActionParser extends ConfigurationParser<Action>
Constructor and Description |
---|
ActionParser(RewardProvider provider) |
Modifier and Type | Method and Description |
---|---|
ActionParser |
createView(RewardProvider provider)
Creates a shallow copy of this parser with the given reward provider.
|
static int |
getCurrentID() |
Action |
parse(org.bukkit.configuration.ConfigurationSection input,
java.lang.String key)
Transforms a configuration object, represented by a key, into an object.
|
static void |
setCurrentID(int id) |
public ActionParser(RewardProvider provider)
public Action parse(org.bukkit.configuration.ConfigurationSection input, java.lang.String key) throws ParsingException
ConfigurationParser
parse
in class ConfigurationParser<Action>
input
- - the configuration section in which the object is stored.key
- - the key of the configuration object.ParsingException
- An error occurred during the parsing.public ActionParser createView(RewardProvider provider)
provider
- - new reward provider.public static int getCurrentID()
public static void setCurrentID(int id)