DespawnItemIntoEntity

Places items onto a single entity occupying the target space: an item frame, a living entity's equipment slots (armour and hands), a storage minecart's inventory, or a furnace minecart's fuel.

Constructors

Link copied to clipboard
constructor(plugin: PaperMcDespawnedItems)

Types

Link copied to clipboard
object Companion

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).