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

public class ListMask extends BaseMask
The mask with a list of child masks
  • Constructor Details

    • ListMask

      public ListMask(@NotNull @NotNull String name)
      Create a new mask
      Parameters:
      name - the name of the mask
  • Method Details

    • addMask

      @Contract("_ -> this") public <T extends Mask> ListMask addMask(@NotNull @NotNull Collection<@NotNull T> masks)
      Add mask(s)
      Type Parameters:
      T - the type of the mask
      Parameters:
      masks - the mask
      Returns:
      this instance
    • addMask

      @Contract("_ -> this") public ListMask addMask(@NotNull @NotNull Mask... mask)
      Add mask(s)
      Parameters:
      mask - the mask
      Returns:
      this instance
    • getMasks

      @NotNull public @NotNull List<@NotNull Mask> getMasks()
      Get the list of masks
      Returns:
      the masks
    • 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