Class ExitableProperty
java.lang.Object
com.pixelmonmod.pixelmon.battles.api.rules.property.type.AbstractBooleanProperty
com.pixelmonmod.pixelmon.battles.api.rules.property.ExitableProperty
- All Implemented Interfaces:
BattleProperty<Boolean>
-
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 propertyboolean
If the property's value is required by the client for UI logicMethods inherited from class com.pixelmonmod.pixelmon.battles.api.rules.property.type.AbstractBooleanProperty
getInstance, parse
-
Constructor Details
-
ExitableProperty
public ExitableProperty()
-
-
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- Specified by:
getDefault
in interfaceBattleProperty<Boolean>
- Overrides:
getDefault
in classAbstractBooleanProperty
- Returns:
- The default
Optional<PropertyValue<T>>
-