BlockChangeFlags

A set of flags used to determine what happens when a block is changed.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@ApiStatus.Internal
interface Factory

Functions

Link copied to clipboard
abstract fun and(other: BlockChangeFlags): BlockChangeFlags

Performs a bitwise AND operation between this set of flags and the given other set of flags.

Link copied to clipboard
abstract fun not(): BlockChangeFlags

Performs a bitwise NOT operation on this set of flags.

Link copied to clipboard
abstract fun or(other: BlockChangeFlags): BlockChangeFlags

Performs a bitwise OR operation between this set of flags and the given other set of flags.

Link copied to clipboard
abstract fun withBlockMoving(blockMoving: Boolean): BlockChangeFlags

Creates a new set of flags with the given blockMoving setting.

Link copied to clipboard
abstract fun withLighting(lighting: Boolean): BlockChangeFlags

Creates a new set of flags with the given lighting setting.

Link copied to clipboard
abstract fun withNeighbourDrops(neighbourDrops: Boolean): BlockChangeFlags

Creates a new set of flags with the given neighbourDrops setting.

Link copied to clipboard
abstract fun withNotifyClients(notifyClients: Boolean): BlockChangeFlags

Creates a new set of flags with the given notifyClients setting.

Link copied to clipboard
abstract fun withUpdateNeighbours(updateNeighbours: Boolean): BlockChangeFlags

Creates a new set of flags with the given updateNeighbours setting.

Link copied to clipboard
abstract fun withUpdateNeighbourShapes(updateNeighbourShapes: Boolean): BlockChangeFlags

Creates a new set of flags with the given updateNeighbourShapes setting.

Properties

Link copied to clipboard
@get:JvmName(name = "blockMoving")
abstract val blockMoving: Boolean

If the block change considers that blocks can be moved in the world.

Link copied to clipboard
@get:JvmName(name = "lighting")
abstract val lighting: Boolean

If lighting updates should be performed.

Link copied to clipboard
@get:JvmName(name = "neighbourDrops")
abstract val neighbourDrops: Boolean

If blocks can be destroyed as a result of updating neighbour shapes.

Link copied to clipboard
@get:JvmName(name = "notifyClients")
abstract val notifyClients: Boolean

If clients with the block in render distance should be notified of its update.

Link copied to clipboard
@get:JvmName(name = "raw")
abstract val raw: Int

The raw value of this set of flags.

Link copied to clipboard
@get:JvmName(name = "updateNeighbours")
abstract val updateNeighbours: Boolean

If neighbours should be updated when the block is updated.

Link copied to clipboard
@get:JvmName(name = "updateNeighbourShapes")
abstract val updateNeighbourShapes: Boolean

If observer blocks should be updated.