Class TurnTimeProperty
java.lang.Object
com.pixelmonmod.pixelmon.battles.api.rules.property.type.AbstractIntegerProperty
com.pixelmonmod.pixelmon.battles.api.rules.property.TurnTimeProperty
- All Implemented Interfaces:
BattleProperty<Integer>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the default value when not supplied If returning an empty optional this means it isn't always requiredgetId()The id of the propertyGets a new instanceof thePropertyValue<T>booleanIf the property's value is required by the client for UI logicMethods inherited from class com.pixelmonmod.pixelmon.battles.api.rules.property.type.AbstractIntegerProperty
parse
-
Constructor Details
-
TurnTimeProperty
public TurnTimeProperty()
-
-
Method Details
-
getId
Description copied from interface:BattlePropertyThe id of the property- Returns:
- The id
-
requiredByClient
public boolean requiredByClient()Description copied from interface:BattlePropertyIf the property's value is required by the client for UI logic- Returns:
- True if required by the client
-
getDefault
Description copied from interface:BattlePropertyGets the default value when not supplied If returning an empty optional this means it isn't always required- Returns:
- The default
Optional<PropertyValue<T>>
-
getInstance
Description copied from interface:BattlePropertyGets a new instanceof thePropertyValue<T>- Returns:
- The new value instance
-