setAllowTaking

fun setAllowTaking(slotRange: IntRange, allowTaking: Boolean)(source)

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

Parameters

slotRange

The range of slots to which the modification should be applied

allowTaking

Whether the player is allowed to take items from the slot