Gamerule

interface Gamerule

Provides accessors and mutators for gamerules in a house.

Implementations perform sequential behavior and therefore expose suspend functions for better interaction with Housing.

Inheritors

Types

Link copied to clipboard

Enumeration of supported gamerules with their canonical display names.

Functions

Link copied to clipboard
abstract suspend fun getGamerule(gamerule: Gamerule.Gamerules): Boolean

Retrieves the current boolean value of the given gamerule.

Link copied to clipboard
abstract suspend fun setGamerule(gamerule: Gamerule.Gamerules, newValue: Boolean): Gamerule

Sets the boolean value of the given gamerule.