Class DecreaseAmountButton

java.lang.Object
net.okocraft.box.feature.gui.api.buttons.amount.DecreaseAmountButton
All Implemented Interfaces:
Button

public class DecreaseAmountButton extends Object
  • Constructor Details

    • DecreaseAmountButton

      public DecreaseAmountButton(int slot, @NotNull @NotNull TypedKey<Amount> dataKey, @NotNull @NotNull com.github.siroshun09.messages.minimessage.base.MiniMessageBase displayName, @NotNull @NotNull com.github.siroshun09.messages.minimessage.arg.Arg1<Integer> clickToDecreaseLore, @NotNull @NotNull com.github.siroshun09.messages.minimessage.arg.Arg1<Integer> currentAmountLore, @NotNull @NotNull ClickResult returningResult)
  • Method Details

    • createIcon

      @NotNull public @NotNull org.bukkit.inventory.ItemStack createIcon(@NotNull @NotNull PlayerSession session)
    • onClick

      @NotNull public @NotNull ClickResult onClick(@NotNull @NotNull PlayerSession session, @NotNull @NotNull org.bukkit.event.inventory.ClickType clickType)
    • getSlot

      public final int getSlot()
      Specified by:
      getSlot in interface Button
    • getOrCreateAmount

      @NotNull protected final @NotNull Amount getOrCreateAmount(@NotNull @NotNull PlayerSession session)