Backpack Configuration
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))
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