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, typedelegate| 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, onUserHurtgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNamepublic final ProtectionEnchantment.Type protectionType
public ProtectionEnchantment(Enchantment.Rarity rarityIn, ProtectionEnchantment.Type protectionTypeIn, EquipmentSlotType... 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 boolean canApplyTogether(Enchantment ench)
canApplyTogether in class Enchantmentpublic static int getFireTimeForEntity(LivingEntity p_92093_0_, int p_92093_1_)
public static double getBlastDamageReduction(LivingEntity entityLivingBaseIn, double damage)