-
成员变量 修饰符和类 成员变量描述 protected static Enchantment[]
enchantments
int
id
static int
ID_BINDING_CURSE
static int
ID_BOW_FLAME
static int
ID_BOW_INFINITY
static int
ID_BOW_KNOCKBACK
static int
ID_BOW_POWER
static int
ID_DAMAGE_ALL
static int
ID_DAMAGE_ARTHROPODS
static int
ID_DAMAGE_SMITE
static int
ID_DURABILITY
static int
ID_EFFICIENCY
static int
ID_FIRE_ASPECT
static int
ID_FORTUNE_DIGGING
static int
ID_FORTUNE_FISHING
static int
ID_FROST_WALKER
static int
ID_KNOCKBACK
static int
ID_LOOTING
static int
ID_LURE
static int
ID_MENDING
static int
ID_PROTECTION_ALL
static int
ID_PROTECTION_EXPLOSION
static int
ID_PROTECTION_FALL
static int
ID_PROTECTION_FIRE
static int
ID_PROTECTION_PROJECTILE
static int
ID_SILK_TOUCH
static int
ID_THORNS
static int
ID_TRIDENT_CHANNELING
static int
ID_TRIDENT_IMPALING
static int
ID_TRIDENT_LOYALTY
static int
ID_TRIDENT_RIPTIDE
static int
ID_VANISHING_CURSE
static int
ID_WATER_BREATHING
static int
ID_WATER_WALKER
static int
ID_WATER_WORKER
protected int
level
protected String
name
EnchantmentType
type
static String[]
words
-
构造函数 Modifier Constructor and Description protected
Enchantment(int id, String name, int weight, EnchantmentType type)
-
All Methods Static Methods Instance Methods Concrete Methods 修饰符和类 成员函数描述 boolean
canEnchant(Item item)
protected Enchantment
clone()
void
doPostAttack(Entity attacker, Entity entity)
void
doPostHurt(Entity attacker, Entity entity)
static Enchantment
get(int id)
double
getDamageBonus(Entity entity)
static Enchantment
getEnchantment(int id)
static Enchantment[]
getEnchantments()
int
getId()
int
getLevel()
int
getMaxEnchantAbility(int level)
int
getMaxEnchantableLevel()
int
getMaxLevel()
int
getMinEnchantAbility(int level)
int
getMinLevel()
String
getName()
float
getProtectionFactor(EntityDamageEvent event)
static String
getRandomName()
int
getWeight()
static void
init()
boolean
isCompatibleWith(Enchantment enchantment)
boolean
isMajor()
Enchantment
setLevel(int level)
Enchantment
setLevel(int level, boolean safe)