Backpack Configuration
data class BackpackConfiguration(val blockedInventoryItem: ItemStack = ItemStack(Material.BARRIER).let {
val meta = it.itemMeta
meta.persistentDataContainer.set(InventoryClickListener.BLOCKED, PersistentDataType.BOOLEAN, true)
it.itemMeta = meta
it
}, val defaultState: Int = 6, val size: Int = 54, val whitelist: List<ItemStack> = listOf(ItemStack(Material.DIAMOND)), val title: Component = Component.text("Backpack", NamedTextColor.YELLOW))
The configuration for the backpack.
Author
MarkusTieger
Since
0.2.0
Parameters
blocked Inventory Item
The item which will used to block a slot
default State
The default backpack amount of unlocked slots
size
The size of the backpack
whitelist
A list of what items should be allowed in the backpack
See also
Constructors
Link copied to clipboard
constructor(blockedInventoryItem: ItemStack = ItemStack(Material.BARRIER).let {
val meta = it.itemMeta
meta.persistentDataContainer.set(InventoryClickListener.BLOCKED, PersistentDataType.BOOLEAN, true)
it.itemMeta = meta
it
}, defaultState: Int = 6, size: Int = 54, whitelist: List<ItemStack> = listOf(ItemStack(Material.DIAMOND)), title: Component = Component.text("Backpack", NamedTextColor.YELLOW))