Class IncreaseAmountButton
java.lang.Object
net.okocraft.box.feature.gui.api.buttons.amount.IncreaseAmountButton
- All Implemented Interfaces:
Button
-
Constructor Summary
ConstructorDescriptionIncreaseAmountButton
(int slot, @NotNull TypedKey<Amount> dataKey, @NotNull com.github.siroshun09.messages.minimessage.base.MiniMessageBase displayName, @NotNull com.github.siroshun09.messages.minimessage.arg.Arg1<Integer> clickToSetLore, @NotNull com.github.siroshun09.messages.minimessage.arg.Arg1<Integer> clickToIncreaseLore, @NotNull com.github.siroshun09.messages.minimessage.arg.Arg1<Integer> currentAmountLore, @NotNull ClickResult returningResult) -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.inventory.ItemStack
createIcon
(@NotNull PlayerSession session) protected final @NotNull Amount
getOrCreateAmount
(@NotNull PlayerSession session) final int
getSlot()
@NotNull ClickResult
onClick
(@NotNull PlayerSession session, @NotNull org.bukkit.event.inventory.ClickType clickType)
-
Constructor Details
-
IncreaseAmountButton
public IncreaseAmountButton(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> clickToSetLore, @NotNull @NotNull com.github.siroshun09.messages.minimessage.arg.Arg1<Integer> clickToIncreaseLore, @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() -
getOrCreateAmount
-