Interface GameRule<V>

Type Parameters:
V - The type of the value
All Superinterfaces:
DefaultedRegistryValue, Nameable

@CatalogedBy(GameRules.class) public interface GameRule<V> extends DefaultedRegistryValue, Nameable
Represents a game rule.
  • Method Details

    • valueType

      Type valueType()
      Gets the value type.
      Returns:
      The value type
    • defaultValue

      V defaultValue()
      Gets the default value.
      Returns:
      The default value