public class MobSizeParser extends TextParser<java.lang.Integer>
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Integer> |
sizeNames |
Constructor and Description |
---|
MobSizeParser() |
Modifier and Type | Method and Description |
---|---|
protected void |
initializeNames() |
protected boolean |
isLegalSize(int size)
Determines if the given size is a possible slime size.
|
java.lang.Integer |
parse(java.lang.String text)
Transforms the given text into an object.
|
getParameterQueue, parse, tryParse, tryParse
protected void initializeNames()
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.protected boolean isLegalSize(int size)
size
- - size to test.