Package fr.maxlego08.zshop.api.buttons
Interface ItemButton
- All Superinterfaces:
fr.maxlego08.menu.api.button.Button,EconomyAction,fr.maxlego08.menu.api.button.PerformButton,fr.maxlego08.menu.api.button.PermissibleButton,fr.maxlego08.menu.api.button.PlaceholderButton,fr.maxlego08.menu.api.button.SlotButton
- All Known Implementing Classes:
ZItemButton
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanBuy()booleancanSell()booleandoubledoublegetBuyPrice(int amount) doublegetBuyPrice(org.bukkit.entity.Player player, int amount) getBuyPriceFormat(int amount) Allows to recover the purchase pricegetBuyPriceFormat(org.bukkit.entity.Player player, int amount) Allows to recover the purchase price with the modifiersgetLore()intgetMob()doubledoublegetSellPrice(int amount) doublegetSellPrice(org.bukkit.entity.Player player, int amount) getSellPriceFormat(int amount) Allows to recover the sale pricegetSellPriceFormat(org.bukkit.entity.Player player, int amount) Allows to recover the sale price with the modifiersdoubledoublebooleangiveItem()voidMethods inherited from interface fr.maxlego08.menu.api.button.Button
buildDisplayName, buildLore, closeInventory, getCustomItemStack, getData, getItemStack, getMessages, getName, getOpenLink, getPlayerHead, getRealSlot, getSlot, getSound, hasSpecialRender, isClickable, isPermament, isRefreshOnClick, isUpdated, onClick, onInventoryClose, onInventoryOpen, onLeftClick, onMiddleClick, onRender, onRightClick, updateOnClickMethods inherited from interface fr.maxlego08.zshop.api.buttons.EconomyAction
buy, sellMethods inherited from interface fr.maxlego08.menu.api.button.PerformButton
execute, getActions, getCommands, getConsoleCommands, getConsoleLeftCommands, getConsolePermission, getConsolePermissionCommands, getConsoleRightCommandsMethods inherited from interface fr.maxlego08.menu.api.button.PermissibleButton
checkPermission, getElseButton, getMasterParentButton, getOrPermission, getParentButton, getPermission, getPermissions, hasElseButton, hasPermissionMethods inherited from interface fr.maxlego08.menu.api.button.PlaceholderButton
getAction, getPlaceHolder, getValue, hasPlaceHolderMethods inherited from interface fr.maxlego08.menu.api.button.SlotButton
getSlots
-
Field Details
-
nbtMobSpawnerKey
- See Also:
-
-
Method Details
-
getSellPrice
double getSellPrice() -
getBuyPrice
double getBuyPrice() -
getSellPrice
double getSellPrice(int amount) -
getBuyPrice
double getBuyPrice(int amount) -
getSellPrice
double getSellPrice(org.bukkit.entity.Player player, int amount) -
getBuyPrice
double getBuyPrice(org.bukkit.entity.Player player, int amount) -
getUnitSellPrice
double getUnitSellPrice() -
getUnitBuyPrice
double getUnitBuyPrice() -
canSell
boolean canSell() -
canBuy
boolean canBuy() -
getMaxStack
int getMaxStack() -
getEconomy
ShopEconomy getEconomy() -
getLore
-
getSellPriceFormat
Allows to recover the sale price with the modifiers- Parameters:
player- the playeramount- current amount- Returns:
- price format
-
getBuyPriceFormat
Allows to recover the purchase price with the modifiers- Parameters:
player- the playeramount- current amount- Returns:
- price format
-
getSellPriceFormat
Allows to recover the sale price- Parameters:
amount- current amount- Returns:
- price format
-
getBuyPriceFormat
Allows to recover the purchase price- Parameters:
amount- current amount- Returns:
- price format
-
getBuyCommands
- Returns:
- buy commands
-
getSellCommands
- Returns:
- sell commands
-
giveItem
boolean giveItem()- Returns:
- give item
-
getServerBuyLimit
-
getServerSellLimit
-
getPlayerBuyLimit
-
getPlayerSellLimit
-
enableLog
boolean enableLog() -
log
-
affectByPriceModifier
boolean affectByPriceModifier() -
getMob
String getMob()
-