setAllowPutting

fun setAllowPutting(slotRange: IntRange, allowPutting: Boolean)(source)

This function is used to set whether the player is allowed to put items into the inventory at the specified slot range

Parameters

slotRange

The range of slots to which the modification should be applied

allowPutting

Whether the player is allowed to put items into the slot