addPrioritized

fun PlayerInventory.addPrioritized(prioritizedSlot: EquipmentSlot, itemStack: ItemStack): Int

Puts an ItemStack on the prioritizedSlot or adds it to the Inventory if the given slot is occupied.


fun Inventory.addPrioritized(prioritizedSlot: Int, itemStack: ItemStack): Int

Puts an ItemStack on the prioritizedSlot or adds it to the Inventory if the given slot is occupied.