Class SingleMask

java.lang.Object
me.hsgamer.hscore.minecraft.gui.mask.BaseMask
me.hsgamer.hscore.minecraft.gui.mask.impl.SingleMask
All Implemented Interfaces:
Mask, Initializable

public class SingleMask extends BaseMask
The simple mask with a single Button
  • Field Details

    • slot

      protected final int slot
    • button

      protected final Button button
  • Constructor Details

    • SingleMask

      public SingleMask(@NotNull @NotNull String name, int slot, @NotNull @NotNull Button button)
      Create a new mask
      Parameters:
      name - the name of the mask
      slot - the slot
      button - the button
  • Method Details

    • generateButtons

      public Optional<Map<Integer,Button>> generateButtons(@NotNull @NotNull UUID uuid, @NotNull @NotNull InventorySize inventorySize)
      Description copied from interface: Mask
      Generate the buttons for the unique id
      Parameters:
      uuid - the unique id
      inventorySize - the size of the inventory
      Returns:
      the map contains the slots and the buttons
    • init

      public void init()
      Description copied from interface: Initializable
      Initialize some properties for the object
    • stop

      public void stop()
      Description copied from interface: Initializable
      Stop the object