Class MinestomInventoryContext

java.lang.Object
me.hsgamer.hscore.minestom.gui.MinestomInventoryContext
All Implemented Interfaces:
me.hsgamer.hscore.minecraft.gui.common.inventory.InventoryContext

public class MinestomInventoryContext extends Object implements me.hsgamer.hscore.minecraft.gui.common.inventory.InventoryContext
The InventoryContext of Inventory
  • Constructor Details

    • MinestomInventoryContext

      public MinestomInventoryContext(UUID viewerId, net.minestom.server.inventory.Inventory inventory)
      Create a new instance
      Parameters:
      viewerId - the viewer id
      inventory - the inventory
  • Method Details

    • getInventory

      public net.minestom.server.inventory.Inventory getInventory()
      Get the Minestom inventory
      Returns:
      the Minestom inventory
    • getViewerID

      public UUID getViewerID()
      Specified by:
      getViewerID in interface me.hsgamer.hscore.minecraft.gui.common.inventory.InventoryContext
    • getSize

      public int getSize()
      Specified by:
      getSize in interface me.hsgamer.hscore.minecraft.gui.common.inventory.InventoryContext
    • getSlot

      public int getSlot(int x, int y)
      Specified by:
      getSlot in interface me.hsgamer.hscore.minecraft.gui.common.inventory.InventoryContext