public class ProtectionEnchantment extends Enchantment
修飾子とタイプ | クラスと説明 |
---|---|
static class |
ProtectionEnchantment.Type |
Enchantment.Rarity
修飾子とタイプ | フィールドと説明 |
---|---|
ProtectionEnchantment.Type |
protectionType |
name, type
delegate
コンストラクタと説明 |
---|
ProtectionEnchantment(Enchantment.Rarity rarityIn,
ProtectionEnchantment.Type protectionTypeIn,
EquipmentSlotType... slots) |
修飾子とタイプ | メソッドと説明 |
---|---|
int |
calcModifierDamage(int level,
DamageSource source)
Calculates the damage protection of the enchantment based on level and damage source passed.
|
boolean |
canApplyTogether(Enchantment ench)
Determines if the enchantment passed can be applyied together with this enchantment.
|
static double |
getBlastDamageReduction(LivingEntity entityLivingBaseIn,
double damage) |
static int |
getFireTimeForEntity(LivingEntity p_92093_0_,
int p_92093_1_)
Gets the amount of ticks an entity should be set fire, adjusted for fire protection.
|
int |
getMaxEnchantability(int enchantmentLevel) |
int |
getMaxLevel()
Returns the maximum level that the enchantment can have.
|
int |
getMinEnchantability(int enchantmentLevel)
Returns the minimal value of enchantability needed on the enchantment level passed.
|
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
クラス内 Enchantment
public int getMaxEnchantability(int enchantmentLevel)
getMaxEnchantability
クラス内 Enchantment
public int getMaxLevel()
getMaxLevel
クラス内 Enchantment
public int calcModifierDamage(int level, DamageSource source)
calcModifierDamage
クラス内 Enchantment
public boolean canApplyTogether(Enchantment ench)
canApplyTogether
クラス内 Enchantment
public static int getFireTimeForEntity(LivingEntity p_92093_0_, int p_92093_1_)
public static double getBlastDamageReduction(LivingEntity entityLivingBaseIn, double damage)