Interface PrimaryPlayerInventory
-
- All Superinterfaces:
Inventory
,ValueContainer
public interface PrimaryPlayerInventory extends Inventory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.item.inventory.Inventory
Inventory.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GridInventory
asGrid()
Gets the (4x9) grid of the players main inventory.Hotbar
hotbar()
Gets the hotbar of the player.GridInventory
storage()
Gets the (3x9) grid of the players main inventory.-
Methods inherited from interface org.spongepowered.api.item.inventory.Inventory
asViewable, canFit, capacity, children, clear, contains, contains, containsAny, containsChild, containsInventory, freeCapacity, get, get, hasChildren, intersect, offer, offer, parent, peek, peekAt, poll, poll, pollFrom, pollFrom, query, query, query, query, query, query, root, set, slot, slots, totalQuantity, union
-
-
-
-
Method Detail
-
hotbar
Hotbar hotbar()
Gets the hotbar of the player.- Returns:
- The hotbar of the player
-
storage
GridInventory storage()
Gets the (3x9) grid of the players main inventory.- Returns:
- The grid of the players main inventory
-
asGrid
GridInventory asGrid()
Gets the (4x9) grid of the players main inventory.- Returns:
- The grid of the players main inventory
-
-