public abstract class EnchantmentProtection extends Enchantment
| Modifier and Type | Class and Description |
|---|---|
static class |
EnchantmentProtection.TYPE |
| Modifier and Type | Field and Description |
|---|---|
protected EnchantmentProtection.TYPE |
protectionType |
enchantments, id, ID_BINDING_CURSE, ID_BOW_FLAME, ID_BOW_INFINITY, ID_BOW_KNOCKBACK, ID_BOW_POWER, ID_DAMAGE_ALL, ID_DAMAGE_ARTHROPODS, ID_DAMAGE_SMITE, ID_DURABILITY, ID_EFFICIENCY, ID_FIRE_ASPECT, ID_FORTUNE_DIGGING, ID_FORTUNE_FISHING, ID_FROST_WALKER, ID_KNOCKBACK, ID_LOOTING, ID_LURE, ID_MENDING, ID_PROTECTION_ALL, ID_PROTECTION_EXPLOSION, ID_PROTECTION_FALL, ID_PROTECTION_FIRE, ID_PROTECTION_PROJECTILE, ID_SILK_TOUCH, ID_THORNS, ID_TRIDENT_CHANNELING, ID_TRIDENT_IMPALING, ID_TRIDENT_LOYALTY, ID_TRIDENT_RIPTIDE, ID_VANISHING_CURSE, ID_WATER_BREATHING, ID_WATER_WALKER, ID_WATER_WORKER, level, name, type, words| Modifier | Constructor and Description |
|---|---|
protected |
EnchantmentProtection(int id,
String name,
int weight,
EnchantmentProtection.TYPE type) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxLevel() |
String |
getName() |
double |
getTypeModifier() |
boolean |
isCompatibleWith(Enchantment enchantment) |
boolean |
isMajor() |
canEnchant, clone, doPostAttack, doPostHurt, get, getDamageBonus, getEnchantment, getEnchantments, getId, getLevel, getMaxEnchantAbility, getMaxEnchantableLevel, getMinEnchantAbility, getMinLevel, getProtectionFactor, getRandomName, getWeight, init, setLevel, setLevelprotected final EnchantmentProtection.TYPE protectionType
protected EnchantmentProtection(int id,
String name,
int weight,
EnchantmentProtection.TYPE type)
public boolean isCompatibleWith(Enchantment enchantment)
isCompatibleWith in class Enchantmentpublic int getMaxLevel()
getMaxLevel in class Enchantmentpublic String getName()
getName in class Enchantmentpublic double getTypeModifier()
public boolean isMajor()
isMajor in class EnchantmentCopyright © 2020. All rights reserved.