Interface GameRuleHolder

    • Method Detail

      • gameRule

        <V> V gameRule​(GameRule<V> gameRule)
        Gets the value for the specified GameRule.
        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 specified GameRule.
        Type Parameters:
        V - The value type
        Parameters:
        gameRule - The game rule
        value - The value
      • gameRules

        java.util.Map<GameRule<?>,​?> gameRules()
        Gets a map with all the GameRules and their values.
        Returns:
        The game rules