PaperMcDespawnedItems

open class PaperMcDespawnedItems : JavaPlugin

PaperMC Despawned Items — a Paper plugin that intercepts items which would normally despawn on the ground and instead relocates them into a registered network of nearby containers, cookers, entities, or empty space.

open so MockBukkit (ByteBuddy) can subclass it in tests — Kotlin classes are final by default, which MockBukkit's plugin loader cannot proxy.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
@get:NotNull
open val componentLogger: @NotNull ComponentLogger
Link copied to clipboard
open val config: FileConfiguration
Link copied to clipboard
Link copied to clipboard
@get:NotNull
open val dataPath: @NotNull Path
Link copied to clipboard
val description: PluginDescriptionFile
Link copied to clipboard

In-flight despawn processes — held so they are not garbage collected.

Link copied to clipboard

Bounds the automatic despawn pipeline so large servers stay smooth under load.

Link copied to clipboard

Effects currently playing — held so they are not garbage collected.

Link copied to clipboard
@set:ApiStatus.Internal
var isEnabled: Boolean
Link copied to clipboard
Link copied to clipboard
val lifecycleManager: LifecycleEventManager<Plugin>
Link copied to clipboard

Owns the despawn-location store and its persistent backend.

Link copied to clipboard
@get:NotNull
open val log4JLogger: @NotNull Logger
Link copied to clipboard
open val logger: Logger
Link copied to clipboard
@get:NotNull
val name: @NotNull String
Link copied to clipboard
val pluginLoader: PluginLoader
Link copied to clipboard
val pluginMeta: PluginMeta
Link copied to clipboard

In-flight bulk material removals, keyed by the sender that started them.

Link copied to clipboard
val server: Server
Link copied to clipboard
lateinit var settings: Config

Loaded configuration (effect + storage settings).

Link copied to clipboard
@get:NotNull
open val slF4JLogger: @NotNull Logger
Link copied to clipboard

The ordered despawn strategies, rebuilt each enable so they never capture a stale plugin instance across a reload (the previous static list did).

Functions

Link copied to clipboard
open fun getCommand(name: String): @Nullable PluginCommand?
Link copied to clipboard
open fun getDefaultBiomeProvider(worldName: String, id: @Nullable String?): @Nullable BiomeProvider?
Link copied to clipboard
open fun getDefaultWorldGenerator(worldName: String, id: @Nullable String?): @Nullable ChunkGenerator?
Link copied to clipboard
open fun getResource(filename: String): @Nullable InputStream?
Link copied to clipboard
fun init(loader: PluginLoader, server: Server, description: PluginDescriptionFile, dataFolder: File, file: File, classLoader: ClassLoader)
fun init(server: Server, description: PluginDescriptionFile, dataFolder: File, file: File, classLoader: ClassLoader, configuration: @Nullable PluginMeta?, logger: Logger)
Link copied to clipboard
@NotNull
open fun namespace(): @NotNull String
Link copied to clipboard
open fun onCommand(sender: CommandSender, command: Command, label: String, args: Array<out String>): Boolean
Link copied to clipboard
open override fun onDisable()
Link copied to clipboard
open override fun onEnable()
Link copied to clipboard
open fun onLoad()
Link copied to clipboard
open fun onTabComplete(sender: CommandSender, command: Command, alias: String, args: Array<out String>): @Nullable List<String>??
Link copied to clipboard
open fun registerCommand(label: String, basicCommand: BasicCommand)
open fun registerCommand(label: String, description: @Nullable String?, basicCommand: BasicCommand)
open fun registerCommand(label: String, aliases: Collection<String>, basicCommand: BasicCommand)
open fun registerCommand(label: String, description: @Nullable String?, aliases: Collection<String>, basicCommand: BasicCommand)
Link copied to clipboard
open fun reloadConfig()
Link copied to clipboard
open fun saveConfig()
Link copied to clipboard
Link copied to clipboard
open fun saveResource(resourcePath: String, replace: Boolean)