Class GUIDisplay

java.lang.Object
me.hsgamer.hscore.ui.BaseDisplay<GUIHolder>
me.hsgamer.hscore.minestom.gui.GUIDisplay
All Implemented Interfaces:
Display, Initializable, Updatable

public class GUIDisplay extends BaseDisplay<GUIHolder>
The base Display for UI in Minestom
  • Constructor Details

    • GUIDisplay

      public GUIDisplay(UUID uuid, GUIHolder holder)
      Create a new display
      Parameters:
      uuid - the unique id
      holder - the holder
  • Method Details

    • handleClick

      public void handleClick(UUID uuid, net.minestom.server.event.inventory.InventoryPreClickEvent event)
      Handle the click event. This can be used to cancel the event.
      Parameters:
      uuid - the unique id
      event - the click event
    • handleClick

      public void handleClick(UUID uuid, net.minestom.server.event.inventory.InventoryClickEvent event)
      Handle the click event
      Parameters:
      uuid - the unique id
      event - the click event
    • getInventory

      public DelegatingInventory getInventory()
      Get the inventory of the display
      Returns:
      the inventory
    • init

      public void init()
    • stop

      public void stop()
    • update

      public void update()