Class UnitChangeButton

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

public class UnitChangeButton extends Object
  • Constructor Details

    • UnitChangeButton

      public UnitChangeButton(int slot, @NotNull @NotNull TypedKey<Amount> dataKey, @NotNull @NotNull com.github.siroshun09.messages.minimessage.base.MiniMessageBase displayName, @NotNull @NotNull com.github.siroshun09.messages.minimessage.base.MiniMessageBase clickToResetAmount, @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)