create Boolean Rule
static GameRules.Type<GameRules.BooleanRule> createBooleanRule(boolean defaultValue)
Content copied to clipboard
Creates a boolean rule type.
Return
a boolean rule type
Parameters
defaultValue
the default value of the game rule
static GameRules.Type<GameRules.BooleanRule> createBooleanRule(boolean defaultValue, BiConsumer<MinecraftServer, GameRules.BooleanRule> changedCallback)
Content copied to clipboard
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