public class ItemDurabilityParser extends TextParser<java.lang.Integer>
Modifier and Type | Class and Description |
---|---|
static class |
ItemDurabilityParser.ItemCategory |
Constructor and Description |
---|
ItemDurabilityParser() |
ItemDurabilityParser(java.lang.Integer itemID) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getItemID() |
static boolean |
inSameCategory(java.util.List<java.lang.Integer> listItemID) |
boolean |
isUsedName() |
java.lang.Integer |
parse(java.lang.String text)
Transforms the given text into an object.
|
void |
setItemID(java.lang.Integer itemID) |
void |
setUsedName(boolean usedName) |
getParameterQueue, parse, tryParse, tryParse
public ItemDurabilityParser()
public ItemDurabilityParser(java.lang.Integer itemID)
public java.lang.Integer getItemID()
public void setItemID(java.lang.Integer itemID)
public boolean isUsedName()
public void setUsedName(boolean usedName)
public java.lang.Integer parse(java.lang.String text) throws ParsingException
TextParser
parse
in class TextParser<java.lang.Integer>
text
- - text to parse.ParsingException
- The text cannot be transformed into a list of objects.public static boolean inSameCategory(java.util.List<java.lang.Integer> listItemID)