Game Rule Registry
public final class GameRuleRegistry
Content copied to clipboard
A utility class which allows for registration of game rules. Note game rules with duplicate keys are not allowed. Checking if a game rule key is already taken can be done using hasRegistration.
Creation of rule types is done using GameRuleFactory.
See also
Functions
hasRegistration
Link copied to clipboard
register
Link copied to clipboard
static GameRules.Key<T> register<T extends GameRules.Rule<T>>(String name, CustomGameRuleCategory category, GameRules.Type<T> type)
Content copied to clipboard
Sources
jvm source
Link copied to clipboard