Class HybridMask

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

public class HybridMask extends BaseMask
The mask that views multiple masks
  • Constructor Details

    • HybridMask

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

    • addMask

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

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

      public Collection<Mask> getMasks()
      Get the 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