Class Inventory

java.lang.Object
org.geysermc.geyser.inventory.Inventory
Direct Known Subclasses:
Container, PlayerInventory

public class Inventory extends Object
  • Field Details

    • id

      protected final int id
    • size

      protected final int size
    • containerType

      protected final com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType
      Used for smooth transitions between two windows of the same type.
    • title

      protected String title
    • items

      protected final GeyserItemStack[] items
    • holderPosition

      protected com.nukkitx.math.vector.Vector3i holderPosition
      The location of the inventory block. Will either be a fake block above the player's head, or the actual block location
    • holderId

      protected long holderId
  • Constructor Details

    • Inventory

      protected Inventory(int id, int size, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType)
    • Inventory

      protected Inventory(String title, int id, int size, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType)
  • Method Details