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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
GameRule.Builder<V>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description V
defaultValue()
Gets the default value.java.lang.reflect.Type
valueType()
Gets the valuetype
.-
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
-
-
-
Method Detail
-
valueType
java.lang.reflect.Type valueType()
Gets the valuetype
.- Returns:
- The value type
-
defaultValue
V defaultValue()
Gets the default value.- Returns:
- The default value
-
-