public class EnchantmentProtection extends Enchantment
Modifier and Type | Class and Description |
---|---|
static class |
EnchantmentProtection.Type |
Enchantment.Rarity
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
Modifier and Type | Field and Description |
---|---|
EnchantmentProtection.Type |
protectionType |
name, REGISTRY, type
delegate
Constructor and Description |
---|
EnchantmentProtection(Enchantment.Rarity rarityIn,
EnchantmentProtection.Type protectionTypeIn,
EntityEquipmentSlot... slots) |
Modifier and Type | Method and Description |
---|---|
int |
calcModifierDamage(int level,
DamageSource source) |
boolean |
canApplyTogether(Enchantment ench) |
static double |
getBlastDamageReduction(EntityLivingBase entityLivingBaseIn,
double damage) |
static int |
getFireTimeForEntity(EntityLivingBase p_92093_0_,
int p_92093_1_) |
int |
getMaxEnchantability(int enchantmentLevel) |
int |
getMaxLevel() |
int |
getMinEnchantability(int enchantmentLevel) |
java.lang.String |
getName() |
calcDamageByCreature, canApply, canApplyAtEnchantingTable, getEnchantmentByID, getEnchantmentByLocation, getEnchantmentID, getEntityEquipment, getMinLevel, getRarity, getTranslatedName, isAllowedOnBooks, isTreasureEnchantment, onEntityDamaged, onUserHurt, registerEnchantments, setName
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public final EnchantmentProtection.Type protectionType
public EnchantmentProtection(Enchantment.Rarity rarityIn, EnchantmentProtection.Type protectionTypeIn, EntityEquipmentSlot... slots)
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(EntityLivingBase p_92093_0_, int p_92093_1_)
public static double getBlastDamageReduction(EntityLivingBase entityLivingBaseIn, double damage)