minny.zephyrus.items
Class Wand

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

public class Wand
extends CustomItem

Zephyrus

Author:
minnymin3

Field Summary
 
Fields inherited from class minny.zephyrus.utils.ItemUtil
plugin
 
Constructor Summary
Wand(Zephyrus plugin)
           
 
Method Summary
 void createItem(org.bukkit.inventory.ItemStack i)
          Adds the displayname, lore, etc.
static java.util.Set<org.bukkit.entity.Item> getItemEntity(org.bukkit.entity.Entity[] entitys)
           
static java.util.Set<org.bukkit.inventory.ItemStack> getItems(org.bukkit.entity.Entity[] entitys)
           
static org.bukkit.entity.Entity[] getNearbyEntities(org.bukkit.Location l, int radius)
           
 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 onClick(org.bukkit.event.player.PlayerInteractEvent e)
           
 void onCraftHandle(org.bukkit.event.inventory.PrepareItemCraftEvent e)
           
 void onWand(org.bukkit.event.player.PlayerInteractEvent e)
           
 org.bukkit.inventory.Recipe recipe()
          The custom recipe for the item
 
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

Wand

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

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

onClick

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

getNearbyEntities

public static org.bukkit.entity.Entity[] getNearbyEntities(org.bukkit.Location l,
                                                           int radius)

getItems

public static java.util.Set<org.bukkit.inventory.ItemStack> getItems(org.bukkit.entity.Entity[] entitys)

getItemEntity

public static java.util.Set<org.bukkit.entity.Item> getItemEntity(org.bukkit.entity.Entity[] entitys)

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

onWand

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

onCraftHandle

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