Interface GameRuleHolder
- All Known Subinterfaces:
ClientWorldProperties,ServerWorldProperties,WorldProperties
public interface GameRuleHolder
Represents something that can hold
GameRules.-
Method Summary
-
Method Details
-
gameRule
Gets the value for the specifiedGameRule.- Type Parameters:
V- The value type- Parameters:
gameRule- The game rule- Returns:
- The value
-
setGameRule
Sets the value for the specifiedGameRule.- Type Parameters:
V- The value type- Parameters:
gameRule- The game rulevalue- The value
-
gameRules
Gets a map with all theGameRules and their values.- Returns:
- The game rules
-