Class AbstractIntegerProperty
java.lang.Object
com.pixelmonmod.pixelmon.battles.api.rules.property.type.AbstractIntegerProperty
- All Implemented Interfaces:
BattleProperty<Integer>
- Direct Known Subclasses:
LevelCapProperty
,NumPokemonProperty
,TeamSelectProperty
,TurnTimeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAttempts to parse the object into aPropertyValue<T>
Will returnOptional.empty()
if fails to parseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.pixelmonmod.pixelmon.battles.api.rules.BattleProperty
getDefault, getId, getInstance, requiredByClient
-
Constructor Details
-
AbstractIntegerProperty
public AbstractIntegerProperty()
-
-
Method Details
-
parse
Description copied from interface:BattleProperty
Attempts to parse the object into aPropertyValue<T>
Will returnOptional.empty()
if fails to parse- Specified by:
parse
in interfaceBattleProperty<Integer>
- Parameters:
o
- The object being parsed- Returns:
- The optional
PropertyValue<T>
-