mirror of https://github.com/FabricMC/yarn.git
Rename LivingEntity#applyEnchantmentsToDamage (#3187)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
b1d5144743
commit
5e2e48742c
|
@ -416,7 +416,15 @@ CLASS net/minecraft/class_1309 net/minecraft/entity/LivingEntity
|
|||
METHOD method_6035 tickRiptide (Lnet/minecraft/class_238;Lnet/minecraft/class_238;)V
|
||||
ARG 1 a
|
||||
ARG 2 b
|
||||
METHOD method_6036 applyEnchantmentsToDamage (Lnet/minecraft/class_1282;F)F
|
||||
METHOD method_6036 modifyAppliedDamage (Lnet/minecraft/class_1282;F)F
|
||||
COMMENT {@return the modified damage value for the applied {@code damage}}
|
||||
COMMENT
|
||||
COMMENT @apiNote Subclasses should override this to make the entity take reduced damage.
|
||||
COMMENT
|
||||
COMMENT @implNote This applies various {@linkplain net.minecraft.enchantment.ProtectionEnchantment
|
||||
COMMENT protection enchantments} and the resistance effect. {@link
|
||||
COMMENT net.minecraft.entity.mob.WitchEntity} uses this to negate their own damage and reduce the
|
||||
COMMENT applied status effect damage.
|
||||
ARG 1 source
|
||||
ARG 2 amount
|
||||
METHOD method_6037 spawnItemParticles (Lnet/minecraft/class_1799;I)V
|
||||
|
|
Loading…
Reference in New Issue