Rename LivingEntity#applyEnchantmentsToDamage (#3187)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
apple502j 2022-05-30 23:52:07 +09:00 committed by GitHub
parent b1d5144743
commit 5e2e48742c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -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