类 ProtectionEnchantment
java.lang.Object
net.minecraft.world.item.enchantment.Enchantment
net.minecraft.world.item.enchantment.ProtectionEnchantment
- 所有已实现的接口:
IForgeEnchantment
-
嵌套类概要
嵌套类从类继承的嵌套类/接口 net.minecraft.world.item.enchantment.Enchantment
Enchantment.Rarity
-
字段概要
字段从类继承的字段 net.minecraft.world.item.enchantment.Enchantment
category, descriptionId
-
构造器概要
构造器构造器说明ProtectionEnchantment
(Enchantment.Rarity pRarity, ProtectionEnchantment.Type pType, EquipmentSlot... pApplicableSlots) -
方法概要
修饰符和类型方法说明boolean
checkCompatibility
(Enchantment pEnch) int
getDamageProtection
(int pLevel, DamageSource pSource) static double
getExplosionKnockbackAfterDampener
(LivingEntity pLivingEntity, double pDamage) static int
getFireAfterDampener
(LivingEntity pLivingEntity, int pLevel) int
getMaxCost
(int pEnchantmentLevel) int
int
getMinCost
(int pEnchantmentLevel) 从类继承的方法 net.minecraft.world.item.enchantment.Enchantment
byId, canApplyAtEnchantingTable, canEnchant, doPostAttack, doPostHurt, getDamageBonus, getDescriptionId, getFullname, getMinLevel, getOrCreateDescriptionId, getRarity, getSlotItems, isAllowedOnBooks, isCompatibleWith, isCurse, isDiscoverable, isTradeable, isTreasureOnly
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraftforge.common.extensions.IForgeEnchantment
allowedInCreativeTab, getDamageBonus
-
字段详细资料
-
type
-
-
构造器详细资料
-
ProtectionEnchantment
public ProtectionEnchantment(Enchantment.Rarity pRarity, ProtectionEnchantment.Type pType, EquipmentSlot... pApplicableSlots)
-
-
方法详细资料
-
getMinCost
public int getMinCost(int pEnchantmentLevel) - 覆盖:
getMinCost
在类中Enchantment
-
getMaxCost
public int getMaxCost(int pEnchantmentLevel) - 覆盖:
getMaxCost
在类中Enchantment
-
getMaxLevel
public int getMaxLevel()- 覆盖:
getMaxLevel
在类中Enchantment
-
getDamageProtection
- 覆盖:
getDamageProtection
在类中Enchantment
-
checkCompatibility
- 覆盖:
checkCompatibility
在类中Enchantment
-
getFireAfterDampener
-
getExplosionKnockbackAfterDampener
-