Class SimpleButton

java.lang.Object
me.hsgamer.hscore.minecraft.gui.button.impl.SimpleButton
All Implemented Interfaces:
Button, Initializable
Direct Known Subclasses:
AirButton

public class SimpleButton extends Object implements Button
A simple button
  • 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 function
      consumer - the consumer
    • SimpleButton

      public SimpleButton(@Nullable @Nullable Item item, @NotNull @NotNull Consumer<@NotNull ClickEvent> consumer)
      Create a new button
      Parameters:
      item - the item
      consumer - the consumer
  • Method Details

    • display

      public DisplayButton display(@NotNull @NotNull UUID uuid)
      Description copied from interface: Button
      Display the button
      Specified by:
      display in interface Button
      Parameters:
      uuid - the unique id
      Returns:
      the display button