DespawnIntoVoid

Always applies. Destroys illegal/technical items outright rather than letting them be placed anywhere.

Constructors

Link copied to clipboard
constructor(plugin: PaperMcDespawnedItems)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val supportsRemoval: Boolean = false

Void destroys contraband; it stores nothing, so bulk removal must skip it.

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
fun isContraband(material: Material): Boolean

True when material is contraband — either built into the plugin, or added by the admin through void.banned-materials. Read from config on each call so /despi reload takes effect without a restart.

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