createBooleanRule

static GameRules.Type<GameRules.BooleanRulecreateBooleanRule(boolean defaultValue)

Creates a boolean rule type.

Return

a boolean rule type

Parameters

defaultValue

the default value of the game rule

static GameRules.Type<GameRules.BooleanRulecreateBooleanRule(boolean defaultValue, BiConsumer<MinecraftServer, GameRules.BooleanRule> changedCallback)

Creates a boolean rule type.

Return

a boolean rule type

Parameters

defaultValue

the default value of the game rule

changedCallback

a callback that is invoked when the value of a game rule has changed