minny.zephyrus.items
Class CustomItem

java.lang.Object
  extended by minny.zephyrus.utils.ItemUtil
      extended by minny.zephyrus.items.CustomItem
All Implemented Interfaces:
org.bukkit.event.Listener
Direct Known Subclasses:
BlinkPearl, GemOfLightning, HoeOfGrowth, LifeSuckDiamond, LifeSuckGold, LifeSuckIron, ManaPotion, RodOfFire, Wand

public abstract class CustomItem
extends ItemUtil
implements org.bukkit.event.Listener

Zephyrus

Author:
minnymin3

Field Summary
 
Fields inherited from class minny.zephyrus.utils.ItemUtil
plugin
 
Constructor Summary
CustomItem(Zephyrus plugin)
           
 
Method Summary
abstract  void createItem(org.bukkit.inventory.ItemStack i)
          Adds the displayname, lore, etc.
 boolean hasLevel()
          Weather or not the custom item should have a level
abstract  org.bukkit.inventory.ItemStack item()
          The item (with displayname, lore, etc.)
 int maxLevel()
          The maximum level of a custom item
abstract  java.lang.String name()
          The displayname of the item
abstract  org.bukkit.inventory.Recipe recipe()
          The custom recipe for the item
 int reqLevel()
          The required level of the player to craft the item
 
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

CustomItem

public CustomItem(Zephyrus plugin)
Method Detail

name

public abstract java.lang.String name()
The displayname of the item

Returns:
The displayname of the item

item

public abstract org.bukkit.inventory.ItemStack item()
The item (with displayname, lore, etc.)

Returns:
The item (with displayname, lore, etc.)

createItem

public abstract void createItem(org.bukkit.inventory.ItemStack i)
Adds the displayname, lore, etc. to the item

Parameters:
i - The itemstack to change

recipe

public abstract org.bukkit.inventory.Recipe recipe()
The custom recipe for the item

Returns:
The custom recipe for the item

hasLevel

public boolean hasLevel()
Weather or not the custom item should have a level

Returns:
Weather or not the custom item should have a level

maxLevel

public int maxLevel()
The maximum level of a custom item

Returns:

reqLevel

public int reqLevel()
The required level of the player to craft the item

Returns:
The required level of the player to craft the item