Class AdvancedButtonMap

java.lang.Object
me.hsgamer.hscore.minecraft.gui.advanced.AdvancedButtonMap
All Implemented Interfaces:
ButtonMap, Initializable

public class AdvancedButtonMap extends Object implements ButtonMap
An advanced ButtonMap that uses Mask
  • Constructor Details

    • AdvancedButtonMap

      public AdvancedButtonMap()
  • Method Details

    • addMask

      public void addMask(@NotNull @NotNull Mask mask)
      Add a mask
      Parameters:
      mask - the mask
    • removeMask

      public void removeMask(@NotNull @NotNull String name)
      Remove masks by name
      Parameters:
      name - the name of the mask
    • removeAllMasks

      @NotNull public @NotNull Collection<@NotNull Mask> removeAllMasks()
      Remove all masks
      Returns:
      the removed masks
    • getMasks

      @NotNull public @NotNull List<@NotNull Mask> getMasks(@NotNull @NotNull String name)
      Get masks by name
      Parameters:
      name - the name of the mask
      Returns:
      the list of masks
    • getMasks

      @NotNull public @NotNull List<@NotNull Mask> getMasks()
      Get all masks
      Returns:
      the list of all masks
    • stop

      public void stop()
      Description copied from interface: Initializable
      Stop the object
      Specified by:
      stop in interface Initializable
    • getButtons

      @NotNull public @NotNull Map<@NotNull Integer,@NotNull DisplayButton> getButtons(@NotNull @NotNull UUID uuid, InventorySize inventorySize)
      Description copied from interface: ButtonMap
      Get the button map that is ready to be displayed to the unique id
      Specified by:
      getButtons in interface ButtonMap
      Parameters:
      uuid - the unique id
      inventorySize - the size of the inventory
      Returns:
      the button map