minny.zephyrus.items
Class GemOfLightning

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

public class GemOfLightning
extends CustomItem

Zephyrus

Author:
minnymin3

Field Summary
 
Fields inherited from class minny.zephyrus.utils.ItemUtil
plugin
 
Constructor Summary
GemOfLightning(Zephyrus plugin)
           
 
Method Summary
 void createItem(org.bukkit.inventory.ItemStack i)
          Adds the displayname, lore, etc.
 org.bukkit.inventory.ItemStack item()
          The item (with displayname, lore, etc.)
 void lightning(org.bukkit.event.player.PlayerInteractEvent e)
           
 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

GemOfLightning

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

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

maxLevel

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

Overrides:
maxLevel in class CustomItem
Returns:

lightning

public void lightning(org.bukkit.event.player.PlayerInteractEvent e)

onCraftHandle

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