Class MultiSlotsMask

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

public class MultiSlotsMask extends BaseMask
The masks with multiple slot
  • Field Details

  • Constructor Details

    • MultiSlotsMask

      public MultiSlotsMask(@NotNull @NotNull String name, @NotNull @NotNull List<@NotNull Integer> slots)
      Create a new mask
      Parameters:
      name - the name of the mask
      slots - the slots
  • Method Details

    • addButton

      @Contract("_ -> this") public <T extends Button> MultiSlotsMask addButton(@NotNull @NotNull Collection<@NotNull T> buttons)
      Add button(s)
      Type Parameters:
      T - the type of the button
      Parameters:
      buttons - the buttons
      Returns:
      this instance
    • addButton

      @Contract("_ -> this") public MultiSlotsMask addButton(@NotNull @NotNull Button... button)
      Add button(s)
      Parameters:
      button - the button
      Returns:
      this instance
    • getSlots

      @NotNull public @NotNull List<@NotNull Integer> getSlots()
      Get the slots
      Returns:
      the slots
    • getButtons

      @NotNull public @NotNull List<@NotNull Button> getButtons()
      Get the buttons
      Returns:
      the buttons
    • generateButtons

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

      public void init()
    • stop

      public void stop()