-
Notifications
You must be signed in to change notification settings - Fork 1
IGameRules Interface
Brisingr Aerowing edited this page Sep 18, 2018
·
1 revision
import mods.ctutils.world.IGameRules
- 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.