OnItemDespawnEvent

class OnItemDespawnEvent(plugin: PaperMcDespawnedItems) : Listener

Queues a ground item for relocation whenever it is about to despawn. Enqueuing (rather than starting a process immediately) lets the io.fairyfox.papermc.despawneditems.despawn.DespawnScheduler bound how much relocation work runs per tick under heavy load.

Constructors

Link copied to clipboard
constructor(plugin: PaperMcDespawnedItems)

Functions

Link copied to clipboard
fun onEvent(event: ItemDespawnEvent)