minny.zephyrus.items
Class LifeSuckDiamond

java.lang.Object
  extended by minny.zephyrus.utils.ItemUtil
      extended by minny.zephyrus.items.CustomItem
          extended by minny.zephyrus.items.LifeSuckDiamond
All Implemented Interfaces:
org.bukkit.event.Listener

public class LifeSuckDiamond
extends CustomItem

Zephyrus

Author:
minnymin3

Field Summary
 
Fields inherited from class minny.zephyrus.utils.ItemUtil
plugin
 
Constructor Summary
LifeSuckDiamond(Zephyrus plugin)
           
 
Method Summary
 void createItem(org.bukkit.inventory.ItemStack i)
          Adds the displayname, lore, etc.
 void createUpgradeItem(org.bukkit.inventory.ItemStack i)
           
 boolean hasLevel()
          Weather or not the custom item should have a level
 org.bukkit.inventory.ItemStack item()
          The item (with displayname, lore, etc.)
 java.lang.String name()
          The displayname of the item
 void onCraftHandle(org.bukkit.event.inventory.PrepareItemCraftEvent e)
           
 org.bukkit.inventory.Recipe recipe()
          The custom recipe for the item
 org.bukkit.inventory.ItemStack upgradeItem()
           
 
Methods inherited from class minny.zephyrus.items.CustomItem
maxLevel, reqLevel
 
Methods inherited from class minny.zephyrus.utils.ItemUtil
checkName, delay, delayFromLevel, enchantLevel, getItemLevel, setCustomEnchantment, setGlow, setItemLevel, setItemName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifeSuckDiamond

public LifeSuckDiamond(Zephyrus plugin)
Method Detail

name

public java.lang.String name()
Description copied from class: CustomItem
The displayname of the item

Specified by:
name in class CustomItem
Returns:
The displayname of the item

item

public org.bukkit.inventory.ItemStack item()
Description copied from class: CustomItem
The item (with displayname, lore, etc.)

Specified by:
item in class CustomItem
Returns:
The item (with displayname, lore, etc.)

createItem

public void createItem(org.bukkit.inventory.ItemStack i)
Description copied from class: CustomItem
Adds the displayname, lore, etc. to the item

Specified by:
createItem in class CustomItem
Parameters:
i - The itemstack to change

createUpgradeItem

public void createUpgradeItem(org.bukkit.inventory.ItemStack i)

upgradeItem

public org.bukkit.inventory.ItemStack upgradeItem()

recipe

public org.bukkit.inventory.Recipe recipe()
Description copied from class: CustomItem
The custom recipe for the item

Specified by:
recipe in class CustomItem
Returns:
The custom recipe for the item

hasLevel

public boolean hasLevel()
Description copied from class: CustomItem
Weather or not the custom item should have a level

Overrides:
hasLevel in class CustomItem
Returns:
Weather or not the custom item should have a level

onCraftHandle

public void onCraftHandle(org.bukkit.event.inventory.PrepareItemCraftEvent e)