Interface GameRuleHolder
- 
- All Known Subinterfaces:
- ClientWorldProperties,- ServerWorldProperties,- WorldProperties
 
 public interface GameRuleHolderRepresents something that can holdGameRules.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description <V> VgameRule(GameRule<V> gameRule)Gets the value for the specifiedGameRule.Map<GameRule<?>,?>gameRules()Gets a map with all theGameRules and their values.<V> voidsetGameRule(GameRule<V> gameRule, V value)Sets the value for the specifiedGameRule.
 
- 
- 
- 
Method Detail- 
gameRule<V> V gameRule(GameRule<V> gameRule) Gets the value for the specifiedGameRule.- Type Parameters:
- V- The value type
- Parameters:
- gameRule- The game rule
- Returns:
- The value
 
 - 
setGameRule<V> void setGameRule(GameRule<V> gameRule, V value) Sets the value for the specifiedGameRule.- Type Parameters:
- V- The value type
- Parameters:
- gameRule- The game rule
- value- The value
 
 
- 
 
-