From d8d8ac8819702e1de17ac89c374335866ca01c2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=ADSollace?= Date: Fri, 2 Oct 2020 00:32:00 +0200 Subject: [PATCH] I single-handed mapped the most derpy code in all of minecraft [Squid Mappings] (#1772) * Mapped squid entity. Thise code is so derpy though * Update mappings/net/minecraft/entity/passive/SquidEntity.mapping Co-authored-by: YanisBft Co-authored-by: YanisBft --- .../entity/passive/SquidEntity.mapping | 30 +++++++++++++++---- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/mappings/net/minecraft/entity/passive/SquidEntity.mapping b/mappings/net/minecraft/entity/passive/SquidEntity.mapping index 8d056265e7..8c2394722e 100644 --- a/mappings/net/minecraft/entity/passive/SquidEntity.mapping +++ b/mappings/net/minecraft/entity/passive/SquidEntity.mapping @@ -1,8 +1,23 @@ CLASS net/minecraft/class_1477 net/minecraft/entity/passive/SquidEntity - FIELD field_6901 constantVelocityRate F - FIELD field_6909 constantVelocityZ F - FIELD field_6910 constantVelocityX F - FIELD field_6911 constantVelocityY F + FIELD field_6900 prevTentacleAngle F + FIELD field_6901 swimVelocityScale F + COMMENT A scale factor for the squid's swimming speed. + COMMENT + COMMENT Gets reset to 1 at the beginning of each thrust and gradually decreases to make the squid lurch around. + FIELD field_6902 prevThrustTimer F + COMMENT This serves no real purpose. + FIELD field_6903 rollAngle F + FIELD field_6904 tentacleAngle F + FIELD field_6905 prevTiltAngle F + FIELD field_6906 prevRollAngle F + FIELD field_6907 tiltAngle F + FIELD field_6908 thrustTimer F + COMMENT Timer between thrusts as the squid swims. Represented as an angle from 0 to 2PI. + FIELD field_6909 swimZ F + FIELD field_6910 swimX F + FIELD field_6911 swimY F + FIELD field_6912 thrustTimerSpeed F + FIELD field_6913 turningSpeed F METHOD method_20670 canSpawn (Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Ljava/util/Random;)Z ARG 0 type ARG 1 world @@ -11,11 +26,14 @@ CLASS net/minecraft/class_1477 net/minecraft/entity/passive/SquidEntity ARG 4 random METHOD method_26895 createSquidAttributes ()Lnet/minecraft/class_5132$class_5133; METHOD method_6669 squirt ()V - METHOD method_6670 setConstantVelocity (FFF)V + METHOD method_6670 setSwimmingVector (FFF)V + COMMENT Sets the direction and velocity the squid must go when fleeing an enemy. Only has an effect when in the water. ARG 1 x ARG 2 y ARG 3 z - METHOD method_6672 hasConstantVelocity ()Z + METHOD method_6671 applyBodyRotations (Lnet/minecraft/class_243;)Lnet/minecraft/class_243; + ARG 1 shootVector + METHOD method_6672 hasSwimmingVector ()Z CLASS class_1478 EscapeAttackerGoal FIELD field_6915 timer I CLASS class_1479 SwimGoal