A couple living entity mappings (#1039)

* LivingEntity#method_23883(0) -> dropXp

* LivingEntity#method_23733(1)[1 = ] -> adversary

* LivingEntity#method_23733(1) -> onKilledBy

* +227 doc in LivingEntity#onKilledBy(1)

* LivingEntity#method_23329(2) -> computeFallDamage

* LivingEntity#computeFallDamage(2)[1 = ] -> fallDistance

* LivingEntity#computeFallDamage(2)[2 = ] -> damageMultiplier

* LivingEntity#method_23328(0) -> playBlockFallSound

* LivingEntity#method_21754(0) -> isHoldingLadder

* +175 doc in LivingEntity#isHoldingLadder(0)

* LivingEntity#method_22382(0) -> shouldSpawnConsumptionEffects

* LivingEntity#method_6018(1) -> setPushCooldown

* Fix return tag

* Name PlayerEntity#clipAtLedge

* Move onKilledBy param doc

* isHoldingLadder -> isHoldingOntoLadder

* Fix param comment indent
This commit is contained in:
Pyrofab 2020-01-11 17:06:56 +01:00 committed by modmuss50
parent 02ff24644f
commit 0a3900ac22
2 changed files with 18 additions and 0 deletions

View File

@ -365,3 +365,20 @@ CLASS net/minecraft/class_1309 net/minecraft/entity/LivingEntity
METHOD method_6132 applyArmorToDamage (Lnet/minecraft/class_1282;F)F
ARG 1 source
ARG 2 amount
METHOD method_23883 dropXp ()V
METHOD method_23733 onKilledBy (Lnet/minecraft/class_1309;)V
COMMENT Performs secondary effects after this mob has been killed.
COMMENT
COMMENT <p> The default behaviour spawns a wither rose if {@code adversary} is a {@code WitherEntity}.
COMMENT
ARG 1 adversary
COMMENT the main adversary responsible for this entity's death
METHOD method_23329 computeFallDamage (FF)I
ARG 1 fallDistance
ARG 2 damageMultiplier
METHOD method_23328 playBlockFallSound ()V
METHOD method_21754 isHoldingOntoLadder ()Z
COMMENT @return {@code true} if this entity should not lose height while in a climbing state
COMMENT @see net.minecraft.entity.LivingEntity#applyClimbingSpeed(net.minecraft.util.math.Vec3d)
METHOD method_22382 shouldSpawnConsumptionEffects ()Z
METHOD method_6018 setPushCooldown (I)V

View File

@ -53,6 +53,7 @@ CLASS net/minecraft/class_1657 net/minecraft/entity/player/PlayerEntity
METHOD method_21701 canMine (Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1934;)Z
METHOD method_21823 shouldCancelInteraction ()Z
METHOD method_21824 shouldDismount ()Z
METHOD method_21825 clipAtLedge ()Z
METHOD method_7254 unlockRecipes (Ljava/util/Collection;)I
ARG 1 recipes
METHOD method_7255 addExperience (I)V