public class ItemsParser extends ResourcesParser
Modifier and Type | Field and Description |
---|---|
protected ItemParser |
itemParser |
protected RangeParser |
rangeParser |
Constructor and Description |
---|
ItemsParser(ItemNameParser nameParser) |
Modifier and Type | Method and Description |
---|---|
ItemParser |
getItemParser() |
RangeParser |
getRangeParser() |
ResourceFactory |
parse(org.bukkit.configuration.ConfigurationSection input,
java.lang.String key)
Transforms a configuration object, represented by a key, into an object.
|
protected RangeParser rangeParser
protected ItemParser itemParser
public ItemsParser(ItemNameParser nameParser)
public ResourceFactory parse(org.bukkit.configuration.ConfigurationSection input, java.lang.String key) throws ParsingException
ConfigurationParser
parse
in class ConfigurationParser<ResourceFactory>
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 RangeParser getRangeParser()
public ItemParser getItemParser()