Class SimpleButton
java.lang.Object
me.hsgamer.hscore.minecraft.gui.button.impl.SimpleButton
- All Implemented Interfaces:
Button
,Initializable
- Direct Known Subclasses:
AirButton
A simple button
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSimpleButton
(@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, wait
Methods 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