Class CustomItem
java.lang.Object
net.gcnt.additionsplus.files.items.CustomItem
-
Constructor Summary
ConstructorDescriptionCustomItem(String identifier, int slot, long cooldown, String cooldownMessage, String permission, String noPermissionMsg, List<String> actions, List<String> leftClickActions, List<String> rightClickActions, List<ItemOption> itemOptions, String displayName, String material, byte data, int amount, short durability, List<String> lore, List<org.bukkit.inventory.ItemFlag> itemFlags, HashMap<org.bukkit.enchantments.Enchantment,Integer> enchantments, boolean unbreakable, int customModelData, String armorColor, String potionType, String potionColor, boolean setExtendedPotion, boolean setUpgradedPotion)
CustomItem(String identifier, String material, int amount, List<String> lore)
-
Method Summary
Modifier and TypeMethodDescriptionint
static CustomItem
long
int
byte
getData()
short
List<org.bukkit.inventory.ItemFlag>
getLore()
getName()
int
getSlot()
org.bukkit.inventory.ItemStack
giveItem(org.bukkit.entity.Player player, boolean give)
boolean
boolean
boolean
void
setActions(List<String> actions)
void
setAmount(int amount)
void
setArmorColor(String armorColor)
void
setCooldown(long cooldown)
void
setCooldownMessage(String cooldownMessage)
void
setCustomModelData(int customModelData)
void
setData(byte data)
void
setDisplayName(String displayName)
void
setDurability(short durability)
void
setEnchantments(HashMap<org.bukkit.enchantments.Enchantment,Integer> enchantments)
void
setExtendedPotion(boolean setExtendedPotion)
void
setItemFlags(List<org.bukkit.inventory.ItemFlag> itemFlags)
void
setItemOptions(List<ItemOption> itemOptions)
void
setItemStack(org.bukkit.inventory.ItemStack itemStack)
void
setLeftClickActions(List<String> leftClickActions)
void
void
setMaterial(String material)
void
setNoPermissionMessage(String noPermissionMessage)
void
setPermission(String permission)
void
setPotionColor(String potionColor)
void
setPotionType(String potionType)
void
setRightClickActions(List<String> rightClickActions)
void
setSlot(int slot)
void
setUnbreakable(boolean unbreakable)
void
setUpgradedPotion(boolean setUpgradedPotion)
-
Constructor Details
-
CustomItem
-
CustomItem
public CustomItem(String identifier, int slot, long cooldown, String cooldownMessage, String permission, String noPermissionMsg, List<String> actions, List<String> leftClickActions, List<String> rightClickActions, List<ItemOption> itemOptions, String displayName, String material, byte data, int amount, short durability, List<String> lore, List<org.bukkit.inventory.ItemFlag> itemFlags, HashMap<org.bukkit.enchantments.Enchantment,Integer> enchantments, boolean unbreakable, int customModelData, String armorColor, String potionType, String potionColor, boolean setExtendedPotion, boolean setUpgradedPotion)
-
-
Method Details
-
getByName
-
isExtendedPotion
public boolean isExtendedPotion() -
setExtendedPotion
public void setExtendedPotion(boolean setExtendedPotion) -
isUpgradedPotion
public boolean isUpgradedPotion() -
setUpgradedPotion
public void setUpgradedPotion(boolean setUpgradedPotion) -
getPotionColor
-
setPotionColor
-
getPotionType
-
setPotionType
-
setItemStack
public void setItemStack(org.bukkit.inventory.ItemStack itemStack) -
getName
-
getSlot
public int getSlot() -
setSlot
public void setSlot(int slot) -
getCooldown
public long getCooldown() -
setCooldown
public void setCooldown(long cooldown) -
getCooldownMessage
-
setCooldownMessage
-
getPermission
-
setPermission
-
getNoPermissionMessage
-
setNoPermissionMessage
-
getActions
-
setActions
-
getLeftClickActions
-
setLeftClickActions
-
getRightClickActions
-
setRightClickActions
-
getItemOptions
-
setItemOptions
-
getDisplayName
-
setDisplayName
-
getMaterial
-
setMaterial
-
getData
public byte getData() -
setData
public void setData(byte data) -
getAmount
public int getAmount() -
setAmount
public void setAmount(int amount) -
getDurability
public short getDurability() -
setDurability
public void setDurability(short durability) -
getLore
-
setLore
-
getItemFlags
-
setItemFlags
-
getEnchantments
-
setEnchantments
-
isUnbreakable
public boolean isUnbreakable() -
setUnbreakable
public void setUnbreakable(boolean unbreakable) -
getCustomModelData
public int getCustomModelData() -
setCustomModelData
public void setCustomModelData(int customModelData) -
getArmorColor
-
setArmorColor
-
giveItem
public org.bukkit.inventory.ItemStack giveItem(org.bukkit.entity.Player player, boolean give)
-