getGamerule

open suspend override fun getGamerule(gamerule: Gamerule.Gamerules): Boolean

Retrieves the current boolean value of the given gamerule.

Return

true if the gamerule is enabled, false otherwise

Parameters

gamerule

the gamerule to query