setGameRule

abstract fun <V> setGameRule(rule: GameRule<V>, value: V & Any)

Sets the value of the given rule to the given value in this holder.

Parameters

V

the value type

rule

the rule

value

the new value