Package net.minecraft.world.damagesource
Class CombatRules
java.lang.Object
net.minecraft.world.damagesource.CombatRules
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
static final float
static final float
static final float
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic float
getDamageAfterAbsorb
(LivingEntity pEntity, float pDamage, DamageSource pDamageSource, float pArmorValue, float pArmorToughness) static float
getDamageAfterMagicAbsorb
(float pDamage, float pEnchantModifiers)
-
Field Details
-
MAX_ARMOR
public static final float MAX_ARMOR- See Also:
-
ARMOR_PROTECTION_DIVIDER
public static final float ARMOR_PROTECTION_DIVIDER- See Also:
-
BASE_ARMOR_TOUGHNESS
public static final float BASE_ARMOR_TOUGHNESS- See Also:
-
MIN_ARMOR_RATIO
public static final float MIN_ARMOR_RATIO- See Also:
-
NUM_ARMOR_ITEMS
private static final int NUM_ARMOR_ITEMS- See Also:
-
-
Constructor Details
-
CombatRules
public CombatRules()
-
-
Method Details
-
getDamageAfterAbsorb
public static float getDamageAfterAbsorb(LivingEntity pEntity, float pDamage, DamageSource pDamageSource, float pArmorValue, float pArmorToughness) -
getDamageAfterMagicAbsorb
public static float getDamageAfterMagicAbsorb(float pDamage, float pEnchantModifiers)
-