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>

public class TeamSelectProperty extends AbstractIntegerProperty
  • Constructor Details

    • TeamSelectProperty

      public TeamSelectProperty()
  • Method Details

    • getId

      public String 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

      public Optional<PropertyValue<Integer>> 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

      public PropertyValue<Integer> getInstance()
      Description copied from interface: BattleProperty
      Gets a new instanceof the PropertyValue<T>
      Returns:
      The new value instance