2019-06-28 17:55:20 -04:00
|
|
|
CLASS net/minecraft/class_1330 net/minecraft/entity/ai/control/BodyControl
|
2021-10-04 09:06:44 -04:00
|
|
|
COMMENT The body control ensures a mob's head and body yaws are kept up with each other.
|
|
|
|
FIELD field_30194 BODY_KEEP_UP_THRESHOLD I
|
|
|
|
FIELD field_30195 ROTATE_BODY_START_TICK I
|
2021-04-10 17:41:40 -04:00
|
|
|
FIELD field_30196 ROTATION_INCREMENTS I
|
2019-07-16 14:22:47 -04:00
|
|
|
FIELD field_6354 lastHeadYaw F
|
2021-10-04 09:06:44 -04:00
|
|
|
FIELD field_6355 bodyAdjustTicks I
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_6356 entity Lnet/minecraft/class_1308;
|
2019-12-19 13:46:57 -05:00
|
|
|
METHOD <init> (Lnet/minecraft/class_1308;)V
|
|
|
|
ARG 1 entity
|
2021-10-04 09:06:44 -04:00
|
|
|
METHOD method_20243 keepUpBody ()V
|
|
|
|
COMMENT Keeps up the body yaw by ensuring it is within the {@linkplain
|
|
|
|
COMMENT MobEntity#getMaxHeadRotation max head rotation} from the head yaw.
|
|
|
|
METHOD method_20244 keepUpHead ()V
|
|
|
|
COMMENT Keeps up the head yaw by ensuring it is within the {@linkplain
|
|
|
|
COMMENT MobEntity#getMaxHeadRotation max head rotation} from the body yaw.
|
|
|
|
METHOD method_20245 slowlyAdjustBody ()V
|
|
|
|
COMMENT Gradually adjusts the body yaw toward the head yaw, starting after 10 ticks of
|
|
|
|
COMMENT {@linkplain #bodyAdjustTicks wait} and finishes by the 20th tick.
|
2019-07-16 14:22:47 -04:00
|
|
|
METHOD method_20246 isIndependent ()Z
|
|
|
|
METHOD method_20247 isMoving ()Z
|
|
|
|
METHOD method_6224 tick ()V
|
2021-10-04 09:06:44 -04:00
|
|
|
COMMENT Ticks the body control.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @implSpec If the entity {@linkplain #isMoving() has moved}, its body yaw
|
|
|
|
COMMENT adjusts to its head yaw. Otherwise, if the entity is {@linkplain
|
|
|
|
COMMENT #isIndependent() not steered}, its head yaw adjusts to its body yaw.
|