Class NoCritsProperty
java.lang.Object
com.pixelmonmod.pixelmon.battles.api.rules.property.type.AbstractBooleanProperty
com.pixelmonmod.pixelmon.battles.api.rules.property.NoCritsProperty
- All Implemented Interfaces:
BattleProperty<Boolean>
-
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 propertybooleanIf 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
-
NoCritsProperty
public NoCritsProperty()
-
-
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- Specified by:
getDefaultin interfaceBattleProperty<Boolean>- Overrides:
getDefaultin classAbstractBooleanProperty- Returns:
- The default
Optional<PropertyValue<T>>
-