Class InputButton

java.lang.Object
me.hsgamer.hscore.bukkit.gui.button.impl.InputButton
All Implemented Interfaces:
Button, Initializable

public class InputButton extends Object implements Button
The button that stores the input item
  • Constructor Details

    • InputButton

      public InputButton()
  • Method Details

    • display

      @Nullable public @Nullable 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
    • stop

      public void stop()
      Description copied from interface: Initializable
      Stop the object
      Specified by:
      stop in interface Initializable
    • setInputItem

      public void setInputItem(@NotNull @NotNull UUID uuid, @Nullable @Nullable org.bukkit.inventory.ItemStack itemStack)
      Set the input item for the unique id
      Parameters:
      uuid - the unique id
      itemStack - the item, or null to remove the input item
    • getInputItem

      @Nullable public @Nullable org.bukkit.inventory.ItemStack getInputItem(@NotNull @NotNull UUID uuid)
      Get the input item for the unique id
      Parameters:
      uuid - the unique id
      Returns:
      the item
    • setDisplayItemFunction

      @Contract("_ -> this") public InputButton setDisplayItemFunction(@NotNull @NotNull BiFunction<UUID,org.bukkit.inventory.ItemStack,org.bukkit.inventory.ItemStack> displayItemFunction)
      Set the function to display the item on the GUI
      Parameters:
      displayItemFunction - the function
      Returns:
      this instance