Slot.Type
Inventory.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, transform
builder, 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, union
forEach, iterator, spliterator
boolean 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