public class ProtectionEnchantment extends Enchantment
Modifier and Type | Class and Description |
---|---|
static class |
ProtectionEnchantment.Type |
Enchantment.Rarity
Modifier and Type | Field and Description |
---|---|
ProtectionEnchantment.Type |
protectionType |
name, type
delegate
Constructor and Description |
---|
ProtectionEnchantment(Enchantment.Rarity rarityIn,
ProtectionEnchantment.Type protectionTypeIn,
EquipmentSlotType... slots) |
Modifier and Type | Method and Description |
---|---|
int |
calcModifierDamage(int level,
DamageSource source) |
boolean |
canApplyTogether(Enchantment ench) |
static double |
getBlastDamageReduction(LivingEntity entityLivingBaseIn,
double damage) |
static int |
getFireTimeForEntity(LivingEntity p_92093_0_,
int p_92093_1_) |
int |
getMaxEnchantability(int enchantmentLevel) |
int |
getMaxLevel() |
int |
getMinEnchantability(int enchantmentLevel) |
calcDamageByCreature, canApply, canApplyAtEnchantingTable, getDefaultTranslationKey, getDisplayName, getEnchantmentByID, getEntityEquipment, getMinLevel, getName, getRarity, isAllowedOnBooks, isCompatibleWith, isCurse, isTreasureEnchantment, onEntityDamaged, onUserHurt
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public final ProtectionEnchantment.Type protectionType
public ProtectionEnchantment(Enchantment.Rarity rarityIn, ProtectionEnchantment.Type protectionTypeIn, EquipmentSlotType... 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 boolean canApplyTogether(Enchantment ench)
canApplyTogether
in class Enchantment
public static int getFireTimeForEntity(LivingEntity p_92093_0_, int p_92093_1_)
public static double getBlastDamageReduction(LivingEntity entityLivingBaseIn, double damage)