Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.enchantments.EnchantmentTarget Enum Reference

Public Member Functions

abstract boolean includes (Material item)
 
boolean includes (ItemStack item)
 

Public Attributes

 includes
 

Detailed Description

Represents the applicable target for a Enchantment

Definition at line 9 of file EnchantmentTarget.java.

Member Function Documentation

abstract boolean org.bukkit.enchantments.EnchantmentTarget.includes ( Material  item)
abstract

Check whether this target includes the specified item.

Parameters
itemThe item to check
Returns
True if the target includes the item
boolean org.bukkit.enchantments.EnchantmentTarget.includes ( ItemStack  item)

Check whether this target includes the specified item.

Parameters
itemThe item to check
Returns
True if the target includes the item

Definition at line 169 of file EnchantmentTarget.java.

References org.bukkit.inventory.ItemStack.getType().

169  {
170  return includes(item.getType());
171  }

Member Data Documentation

org.bukkit.enchantments.EnchantmentTarget.includes

Allows the Enchantment to be placed on all items

Definition at line 15 of file EnchantmentTarget.java.


The documentation for this enum was generated from the following file: