public class EnchantmentProtection extends Enchantment
Modifier and Type | Field and Description |
---|---|
int |
protectionType |
aquaAffinity, baneOfArthropods, blastProtection, depthStrider, effectId, efficiency, enchantmentsBookList, featherFalling, fireAspect, fireProtection, flame, fortune, infinity, knockback, looting, luckOfTheSea, lure, name, power, projectileProtection, protection, punch, respiration, sharpness, silkTouch, smite, thorns, type, unbreaking
Constructor and Description |
---|
EnchantmentProtection(int p_i45765_1_,
ResourceLocation p_i45765_2_,
int p_i45765_3_,
int p_i45765_4_) |
Modifier and Type | Method and Description |
---|---|
int |
calcModifierDamage(int level,
DamageSource source) |
boolean |
canApplyTogether(Enchantment ench) |
static double |
func_92092_a(Entity p_92092_0_,
double p_92092_1_) |
static int |
getFireTimeForEntity(Entity p_92093_0_,
int p_92093_1_) |
int |
getMaxEnchantability(int enchantmentLevel) |
int |
getMaxLevel() |
int |
getMinEnchantability(int enchantmentLevel) |
java.lang.String |
getName() |
addToBookList, calcDamageByCreature, canApply, canApplyAtEnchantingTable, getEnchantmentById, getEnchantmentByLocation, getLocationNames, getMinLevel, getTranslatedName, getWeight, isAllowedOnBooks, onEntityDamaged, onUserHurt, setName
public EnchantmentProtection(int p_i45765_1_, ResourceLocation p_i45765_2_, int p_i45765_3_, int p_i45765_4_)
public int getMinEnchantability(int enchantmentLevel)
getMinEnchantability
in class Enchantment
public int getMaxEnchantability(int enchantmentLevel)
getMaxEnchantability
in class Enchantment
public int getMaxLevel()
getMaxLevel
in class Enchantment
public int calcModifierDamage(int level, DamageSource source)
calcModifierDamage
in class Enchantment
public java.lang.String getName()
getName
in class Enchantment
public boolean canApplyTogether(Enchantment ench)
canApplyTogether
in class Enchantment
public static int getFireTimeForEntity(Entity p_92093_0_, int p_92093_1_)
public static double func_92092_a(Entity p_92092_0_, double p_92092_1_)