@Suppress("unused")
object ChunkAndBlockEventChunk, block entity, and block events for Fabric platform.
This object provides events related to chunk loading/unloading, block entity lifecycle, block breaking, and explosions.
ChunkAndBlockEvent.onChunkLoad
val onChunkLoadEvent triggered when a chunk is loaded.
ChunkAndBlockEvent.onChunkUnload
val onChunkUnloadEvent triggered when a chunk is unloaded.
ChunkAndBlockEvent.onChunkLevelTypeChange
val onChunkLevelTypeChangeEvent triggered when a chunk's full status changes.
ChunkAndBlockEvent.onBlockEntityLoad
val onBlockEntityLoadEvent triggered when a block entity is loaded.
ChunkAndBlockEvent.onBlockEntityUnload
val onBlockEntityUnloadEvent triggered when a block entity is unloaded.
ChunkAndBlockEvent.onBeforeBlockBreak
val onBeforeBlockBreakEvent triggered before a player breaks a block.
Returns
true to allow the break, false to cancel it.
ChunkAndBlockEvent.onAfterBlockBreak
val onAfterBlockBreakEvent triggered after a player breaks a block.
ChunkAndBlockEvent.onCanceledBlockBreak
val onCanceledBlockBreakEvent triggered when a block break is canceled.
ChunkAndBlockEvent.onExplosionStart
@JvmField
@JvmField val onExplosionStartEvent triggered when an explosion starts. Can be cancelled to prevent the explosion.
ChunkAndBlockEvent.onExplosionDetonate
@JvmField
@JvmField val onExplosionDetonateEvent triggered when an explosion detonates. Use this to modify affected blocks/entities.