GameRuleHolder

interface GameRuleHolder

A holder of game rules. Used to get and set game rule values.

Inheritors

Functions

Link copied to clipboard
abstract fun <V> getGameRule(rule: GameRule<V>): V

Gets the value of the given rule in this holder.

Link copied to clipboard
abstract fun <V> setGameRule(rule: GameRule<V>, value: V & Any)

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