Slot.TypeInventory.Builder| Modifier and Type | Method and Description |
|---|---|
boolean |
isValidItem(ItemStack stack)
Check whether the supplied item can be inserted into this slot.
|
boolean |
isValidItem(ItemType type)
Check whether the supplied item can be inserted into this slot.
|
getStackSize, transform, transformbuilder, canFit, capacity, clear, contains, contains, containsAny, containsInventory, first, getArchetype, getInventoryProperty, getInventoryProperty, getMaxStackSize, getPlugin, getProperties, getProperties, getProperty, getProperty, hasChildren, intersect, next, offer, parent, peek, peek, poll, poll, query, query, query, query, query, query, query, queryAny, root, set, setMaxStackSize, size, slots, totalItems, transform, unionforEach, iterator, spliteratorboolean isValidItem(ItemStack stack)
Inventory.offer(org.spongepowered.api.item.inventory.ItemStack) would always return
false for this item.stack - ItemStack to checkboolean isValidItem(ItemType type)
Inventory.offer(org.spongepowered.api.item.inventory.ItemStack) would always return
false for items of this type.type - ItemType to check