Package-level declarations
Functions
Link copied to clipboard
Adds an ItemStack to an Inventory while respecting both the max stack size of the inventory and the max stack size of the item type.
Link copied to clipboard
Adds items to the Player's inventory or drops them on the ground if there is not enough space.
Link copied to clipboard
fun LivingEntity.addToInventoryPrioritizedOrDrop(prioritizedSlot: EquipmentSlot, itemStack: ItemStack)
Puts an ItemStack on the prioritizedSlot or adds it to the Inventory if the given slot is occupied or drops it on the ground if there is not enough space.
Link copied to clipboard