Package org.geysermc.geyser.inventory
Class PlayerInventory
java.lang.Object
org.geysermc.geyser.inventory.Inventory
org.geysermc.geyser.inventory.PlayerInventory
-
Field Summary
Fields inherited from class org.geysermc.geyser.inventory.Inventory
containerType, holderId, holderPosition, id, items, size, title
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull GeyserItemStack
int
Stores the held item slot, starting at index 0.void
setCursor(@NonNull GeyserItemStack newCursor, GeyserSession session)
void
setHeldItemSlot(int heldItemSlot)
Stores the held item slot, starting at index 0.void
setItemInHand(@NonNull GeyserItemStack item)
Methods inherited from class org.geysermc.geyser.inventory.Inventory
getContainerType, getHolderId, getHolderPosition, getId, getItem, getSize, getStateId, getTitle, isPending, setHolderId, setHolderPosition, setItem, setPending, setStateId, setTitle, toString, updateItemNetId
-
Constructor Details
-
PlayerInventory
public PlayerInventory()
-
-
Method Details
-
setCursor
-
getItemInHand
-
setItemInHand
-
getOffhand
-
getHeldItemSlot
public int getHeldItemSlot()Stores the held item slot, starting at index 0. Add 36 in order to get the network item slot. -
setHeldItemSlot
public void setHeldItemSlot(int heldItemSlot)Stores the held item slot, starting at index 0. Add 36 in order to get the network item slot. -
getCursor
-