minny.zephyrus.items
Class HoeOfGrowth

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

public class HoeOfGrowth
extends CustomItem

Zephyrus

Author:
minnymin3

Field Summary
 
Fields inherited from class minny.zephyrus.utils.ItemUtil
plugin
 
Constructor Summary
HoeOfGrowth(Zephyrus plugin)
           
 
Method Summary
 void createItem(org.bukkit.inventory.ItemStack i)
          Adds the displayname, lore, etc.
static org.bukkit.TreeType getGiantTree(int data)
           
static org.bukkit.TreeType getTaintedTree(int data)
           
static org.bukkit.TreeType getTree(int data)
           
 void grow(org.bukkit.event.player.PlayerInteractEvent e)
           
 org.bukkit.inventory.ItemStack item()
          The item (with displayname, lore, etc.)
 int maxLevel()
          The maximum level of a custom item
 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
 
Methods inherited from class minny.zephyrus.items.CustomItem
hasLevel, 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

HoeOfGrowth

public HoeOfGrowth(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

maxLevel

public int maxLevel()
Description copied from class: CustomItem
The maximum level of a custom item

Overrides:
maxLevel in class CustomItem
Returns:

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

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

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.)

grow

public void grow(org.bukkit.event.player.PlayerInteractEvent e)
          throws java.lang.Exception
Throws:
java.lang.Exception

getTree

public static org.bukkit.TreeType getTree(int data)

getGiantTree

public static org.bukkit.TreeType getGiantTree(int data)

getTaintedTree

public static org.bukkit.TreeType getTaintedTree(int data)

onCraftHandle

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