Package net.minecraft.world.damagesource
Class CombatRules
java.lang.Object
net.minecraft.world.damagesource.CombatRules
-
Field Summary
Modifier and TypeFieldDescriptionstatic final float
static final float
static final float
static final float
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
getDamageAfterAbsorb
(float p_19273_, DamageSource p_338892_, float p_19274_, float p_19275_) static float
getDamageAfterMagicAbsorb
(float p_19270_, float p_19271_)
-
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(float p_19273_, DamageSource p_338892_, float p_19274_, float p_19275_) -
getDamageAfterMagicAbsorb
public static float getDamageAfterMagicAbsorb(float p_19270_, float p_19271_)
-