Interface GameRuleHolder
- All Known Subinterfaces:
ClientWorldProperties
,ServerWorldProperties
,WorldProperties
public interface GameRuleHolder
Represents something that can hold
GameRule
s.-
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 theGameRule
s and their values.- Returns:
- The game rules
-