Properties

Link copied to clipboard
open val debugName: String
Link copied to clipboard

If this is true recordBlock is called on chunk updates and on single block updates. This might be inefficient for some modules, so they can choose to not call that method on chunk updates.

Functions

Link copied to clipboard
open override fun chunkUpdate(chunk: LevelChunk)

Is called when a chunk is initially loaded or entirely updated.

Link copied to clipboard
open override fun clearAllChunks()
Link copied to clipboard
open override fun clearChunk(pos: ChunkPos)
Link copied to clipboard
open override fun recordBlock(pos: BlockPos, state: BlockState, cleared: Boolean)

Registers a block update and asks the subscriber to make a decision about what should be done. This method must be thread-safe.