public class EnchantmentProtection extends Enchantment
| Modifier and Type | Class and Description |
|---|---|
static class |
EnchantmentProtection.Type |
Enchantment.RarityIForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>| Modifier and Type | Field and Description |
|---|---|
EnchantmentProtection.Type |
protectionType |
name, REGISTRY, typedelegate| 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, isCompatibleWith, isCurse, isTreasureEnchantment, onEntityDamaged, onUserHurt, registerEnchantments, setNamegetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNamepublic final EnchantmentProtection.Type protectionType
public EnchantmentProtection(Enchantment.Rarity rarityIn, EnchantmentProtection.Type protectionTypeIn, EntityEquipmentSlot... slots)
public int getMinEnchantability(int enchantmentLevel)
getMinEnchantability in class Enchantmentpublic int getMaxEnchantability(int enchantmentLevel)
getMaxEnchantability in class Enchantmentpublic int getMaxLevel()
getMaxLevel in class Enchantmentpublic int calcModifierDamage(int level,
DamageSource source)
calcModifierDamage in class Enchantmentpublic java.lang.String getName()
getName in class Enchantmentpublic boolean canApplyTogether(Enchantment ench)
canApplyTogether in class Enchantmentpublic static int getFireTimeForEntity(EntityLivingBase p_92093_0_, int p_92093_1_)
public static double getBlastDamageReduction(EntityLivingBase entityLivingBaseIn, double damage)