Class PlayerInventory

java.lang.Object
org.geysermc.geyser.inventory.Inventory
org.geysermc.geyser.inventory.PlayerInventory

public class PlayerInventory extends Inventory
  • Constructor Details

    • PlayerInventory

      public PlayerInventory()
  • Method Details

    • setCursor

      public void setCursor(@NonNull @NonNull GeyserItemStack newCursor, GeyserSession session)
    • getItemInHand

      public GeyserItemStack getItemInHand()
    • setItemInHand

      public void setItemInHand(@NonNull @NonNull GeyserItemStack item)
    • getOffhand

      public GeyserItemStack 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

      @NonNull public @NonNull GeyserItemStack getCursor()