TakeModification

This class is used as a InventoryModification to handle taking items from the inventory

Parameters

inventoryBuilder

The InventoryBuilder to which this modification is applied

Constructors

Link copied to clipboard
constructor(inventoryBuilder: InventoryBuilder)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun onInventoryClick(inventoryClickEvent: InventoryClickEvent)

This function is used to handle the InventoryClickEvent for the InventoryBuilder This event will be passed in canceled by default

Link copied to clipboard
open fun onInventoryClose(inventoryCloseEvent: InventoryCloseEvent)

This function is used to handle the InventoryCloseEvent for the InventoryBuilder

Link copied to clipboard
open fun onInventoryDrag(inventoryDragEvent: InventoryDragEvent)

This function is used to handle the InventoryDragEvent for the InventoryBuilder This event will be passed in canceled by default

Link copied to clipboard
fun setAllowTaking(slotRange: IntRange, allowTaking: Boolean)

This function is used to set whether the player is allowed to take items from the inventory