Package eu.xap3y.xagui.interfaces
Interface GuiButtonInterface
-
Method Summary
Modifier and TypeMethodDescriptionaddEnchantment(Enchantment enchantment) addEnchantment(Enchantment enchantment, int level) addItemFlag(ItemFlag flag) addLoreArray(String[] array) addLoreLine(String line) addLoreList(List<String> lines) voidcallRedirect(Player p) clone()SoundfloatMaterialgetIcon()ItemStackgetItem()removeEnchantment(Enchantment enchantment) removeItemFlag(ItemFlag flag) setAmount(int amount) setDurability(short durability) voidsetItem(ItemStack item) setLoreArray(String[] array) setLoreList(List<String> newLore) default GuiButtonwithClickSound(Sound sound) withClickSound(Sound sound, float volume) withListener(GuiClickInterface newListener) withRedirect(Supplier<GuiMenuInterface> menu)
-
Method Details
-
getIcon
Material getIcon() -
getItem
ItemStack getItem() -
setItem
void setItem(ItemStack item) -
withListener
-
setName
-
setLoreList
-
setLore
-
setLoreArray
-
addLoreLine
-
addLoreList
-
addLore
-
addLoreArray
-
clearLore
GuiButton clearLore() -
addItemFlag
-
removeItemFlag
-
setAmount
-
addEnchantment
-
addEnchantment
-
removeEnchantment
-
removeAllEnchantments
GuiButton removeAllEnchantments() -
setDurability
-
getClickListener
GuiClickInterface getClickListener() -
getClickSound
Sound getClickSound() -
getClickSoundVolume
float getClickSoundVolume() -
clone
GuiButton clone() -
withRedirect
-
withClickSound
-
withClickSound
-
callRedirect
void callRedirect(Player p)
-