Class SimpleButton
java.lang.Object
me.hsgamer.hscore.minecraft.gui.button.impl.SimpleButton
- All Implemented Interfaces:
Button,me.hsgamer.hscore.ui.property.Initializable
- Direct Known Subclasses:
NullButton
A simple button
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleButton(@NotNull Function<@NotNull UUID, @Nullable Item> itemFunction, @NotNull Consumer<@NotNull ClickEvent> consumer) Create a new simple buttonSimpleButton(@Nullable Item item, @NotNull Consumer<@NotNull ClickEvent> consumer) Create a new button -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.hsgamer.hscore.minecraft.gui.button.Button
forceSetActionMethods inherited from interface me.hsgamer.hscore.ui.property.Initializable
init, stop
-
Constructor Details
-
SimpleButton
public SimpleButton(@NotNull @NotNull Function<@NotNull UUID, @Nullable Item> itemFunction, @NotNull @NotNull Consumer<@NotNull ClickEvent> consumer) Create a new simple button- Parameters:
itemFunction- the item functionconsumer- the consumer
-
SimpleButton
public SimpleButton(@Nullable @Nullable Item item, @NotNull @NotNull Consumer<@NotNull ClickEvent> consumer) Create a new button- Parameters:
item- the itemconsumer- the consumer
-
-
Method Details
-
getItem
-
handleAction
- Specified by:
handleActionin interfaceButton
-