Skip to content

IGameRules Interface

Brisingr Aerowing edited this page Sep 18, 2018 · 1 revision

Importing

import mods.ctutils.world.IGameRules

Methods

  • void addGameRule(String key, String value, String type) - Adds a gamerule. Type must be one of 'Any', 'Numeric' or 'Boolean'.
  • boolean hasRule(String key) - Returns true if a gamerule with the specified name exists.
  • boolean getBoolean(String key) - Gets the value of the specified boolean gamerule.
  • int getInt(String key) - Gets the value of the specified numeric gamerule.
  • String getString(String key) - Gets the value of the specified string gamerule.
Clone this wiki locally