DespawnIntoStorage

Places items into ordinary storage blocks: chests, barrels, hoppers, droppers, dispensers, shulker boxes, and trapped chests. Handles oversized leftover stacks by reconstructing them for the next despawn location.

Constructors

Link copied to clipboard
constructor(plugin: PaperMcDespawnedItems)

Properties

Link copied to clipboard
open val supportsRemoval: Boolean = true

Whether this strategy participates in bulk removal (removeFrom). Regression pin: DespawnIntoVoid applies to every block but removes nothing, so leaving it in the removal chain short-circuited /despi purge — no container was ever purged.

Functions

Link copied to clipboard
open override fun despawnInto(process: DespawnProcess, targetBlock: Block): DespawnIntoResult

Attempts to place DespawnProcess.item into targetBlock.

Link copied to clipboard
open override fun doesApply(targetBlock: Block): Boolean

Whether this strategy is applicable to targetBlock.

Link copied to clipboard
open override fun removeFrom(material: Material, targetBlock: Block)

Removes all of material from targetBlock (used by bulk purges).

open override fun removeFrom(material: ItemStack, targetBlock: Block)

Removes items matching material from targetBlock (used by bulk purges).