Class SingleMask
java.lang.Object
me.hsgamer.hscore.minecraft.gui.mask.SingleMask
- All Implemented Interfaces:
- Function<@NotNull InventoryContext,,- @Nullable Map<Integer, - ActionItem>> - GUIElement
public class SingleMask
extends Object
implements GUIElement, Function<@NotNull InventoryContext,@Nullable Map<Integer,ActionItem>>  
The simple mask with a single button
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Function<@NotNull InventoryContext, @Nullable ActionItem> protected final int
- 
Constructor SummaryConstructorsConstructorDescriptionSingleMask(int slot, @NotNull Function<@NotNull InventoryContext, @Nullable ActionItem> button) Create a new mask
- 
Method SummaryModifier and TypeMethodDescription@Nullable Map<Integer, ActionItem> apply(@NotNull InventoryContext context) voidinit()Initialize the element.voidstop()Stop the element.
- 
Field Details- 
slotprotected final int slot
- 
button
 
- 
- 
Constructor Details- 
SingleMaskpublic SingleMask(int slot, @NotNull @NotNull Function<@NotNull InventoryContext, @Nullable ActionItem> button) Create a new mask- Parameters:
- slot- the slot
- button- the button
 
 
- 
- 
Method Details- 
initpublic void init()Description copied from interface:GUIElementInitialize the element. Should be called before adding to the GUI.- Specified by:
- initin interface- GUIElement
 
- 
stoppublic void stop()Description copied from interface:GUIElementStop the element. Should be called after removing from the GUI.- Specified by:
- stopin interface- GUIElement
 
- 
apply@Nullable public @Nullable Map<Integer,ActionItem> apply(@NotNull @NotNull InventoryContext context) - Specified by:
- applyin interface- Function<@NotNull InventoryContext,- @Nullable Map<Integer, - ActionItem>> 
 
 
-