Class TeamSelectProperty
java.lang.Object
com.pixelmonmod.pixelmon.battles.api.rules.property.type.AbstractIntegerProperty
com.pixelmonmod.pixelmon.battles.api.rules.property.TeamSelectProperty
- All Implemented Interfaces:
BattleProperty<Integer>
-
Constructor Summary
-
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>
boolean
If 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
-
TeamSelectProperty
public TeamSelectProperty()
-
-
Method Details
-
getId
Description copied from interface:BattleProperty
The id of the property- Returns:
- The id
-
requiredByClient
public boolean requiredByClient()Description copied from interface:BattleProperty
If the property's value is required by the client for UI logic- Returns:
- True if required by the client
-
getDefault
Description copied from interface:BattleProperty
Gets 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:BattleProperty
Gets a new instanceof thePropertyValue<T>
- Returns:
- The new value instance
-