public class EnchantmentWrapper extends Enchantment
EnchantmentsARROW_DAMAGE, ARROW_FIRE, ARROW_INFINITE, ARROW_KNOCKBACK, DAMAGE_ALL, DAMAGE_ARTHROPODS, DAMAGE_UNDEAD, DEPTH_STRIDER, DIG_SPEED, DURABILITY, FIRE_ASPECT, FROST_WALKER, KNOCKBACK, LOOT_BONUS_BLOCKS, LOOT_BONUS_MOBS, LUCK, LURE, MENDING, OXYGEN, PROTECTION_ENVIRONMENTAL, PROTECTION_EXPLOSIONS, PROTECTION_FALL, PROTECTION_FIRE, PROTECTION_PROJECTILE, SILK_TOUCH, THORNS, WATER_WORKER| コンストラクタと説明 |
|---|
EnchantmentWrapper(int id) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
canEnchantItem(ItemStack item)
Checks if this Enchantment may be applied to the given
ItemStack. |
boolean |
conflictsWith(Enchantment other)
Check if this enchantment conflicts with another enchantment.
|
Enchantment |
getEnchantment()
Gets the enchantment bound to this wrapper
|
EnchantmentTarget |
getItemTarget()
Gets the type of
ItemStack that may fit this Enchantment. |
int |
getMaxLevel()
Gets the maximum level that this Enchantment may become.
|
String |
getName()
Gets the unique name of this enchantment
|
int |
getStartLevel()
Gets the level that this Enchantment should start at
|
equals, getById, getByName, getId, hashCode, isAcceptingRegistrations, registerEnchantment, stopAcceptingRegistrations, toString, valuespublic Enchantment getEnchantment()
public int getMaxLevel()
EnchantmentgetMaxLevel クラス内 Enchantmentpublic int getStartLevel()
EnchantmentgetStartLevel クラス内 Enchantmentpublic EnchantmentTarget getItemTarget()
EnchantmentItemStack that may fit this Enchantment.getItemTarget クラス内 Enchantmentpublic boolean canEnchantItem(ItemStack item)
EnchantmentItemStack.
This does not check if it conflicts with any enchantments already applied to the item.
canEnchantItem クラス内 Enchantmentitem - Item to testpublic String getName()
EnchantmentgetName クラス内 Enchantmentpublic boolean conflictsWith(Enchantment other)
EnchantmentconflictsWith クラス内 Enchantmentother - The enchantment to check againstCopyright © 2016. All rights reserved.