From b054090c81c82932afc9701b67f80ee9f365d9fe Mon Sep 17 00:00:00 2001 From: frqnny <45723631+frqnny@users.noreply.github.com> Date: Sat, 10 Jul 2021 07:27:29 -0400 Subject: [PATCH] Travel javadocs (#2568) * Travel method javadocs * moved param doc to param * fix * Fix a typo * Fix a typo 2.0 electric boogaloo * Update mappings/net/minecraft/entity/LivingEntity.mapping Co-authored-by: liach <7806504+liach@users.noreply.github.com> Co-authored-by: liach <7806504+liach@users.noreply.github.com> --- mappings/net/minecraft/entity/LivingEntity.mapping | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mappings/net/minecraft/entity/LivingEntity.mapping b/mappings/net/minecraft/entity/LivingEntity.mapping index 3898fd0124..4840cf485b 100644 --- a/mappings/net/minecraft/entity/LivingEntity.mapping +++ b/mappings/net/minecraft/entity/LivingEntity.mapping @@ -484,7 +484,13 @@ CLASS net/minecraft/class_1309 net/minecraft/entity/LivingEntity METHOD method_6090 takeShieldHit (Lnet/minecraft/class_1309;)V ARG 1 attacker METHOD method_6091 travel (Lnet/minecraft/class_243;)V + COMMENT Allows you to do certain speed and velocity calculations. This is useful for custom vehicle behavior, or custom entity movement. This is not to be confused with AI. + COMMENT + COMMENT

See vanilla examples of {@linkplain net.minecraft.entity.passive.HorseBaseEntity#travel + COMMENT custom horse vehicle} and {@linkplain net.minecraft.entity.mob.FlyingEntity#travel + COMMENT flying entities}. ARG 1 movementInput + COMMENT represents the sidewaysSpeed, upwardSpeed, and forwardSpeed of the entity in that order METHOD method_6092 addStatusEffect (Lnet/minecraft/class_1293;)Z COMMENT Adds a status effect to this entity without specifying a source entity. COMMENT