BackpackConfiguration

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

blockedInventoryItem

The item which will used to block a slot

defaultState

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

Properties

Link copied to clipboard
val blockedInventoryItem: ItemStack
Link copied to clipboard
val defaultState: Int = 6
Link copied to clipboard
val size: Int = 54
Link copied to clipboard
val title: Component
Link copied to clipboard
val whitelist: List<ItemStack>