Restore some stuff lost in 54f0920bc0 (#2695)

and furnish, closes #2686

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
This commit is contained in:
liach 2021-09-20 10:52:01 -05:00 committed by GitHub
parent 69e93f720a
commit d6eb4319f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 43 additions and 16 deletions

View File

@ -1,5 +1,9 @@
CLASS net/minecraft/class_1400 net/minecraft/entity/ai/goal/FollowTargetGoal CLASS net/minecraft/class_1400 net/minecraft/entity/ai/goal/ActiveTargetGoal
COMMENT A target goal that finds a target by entity class when the goal starts.
FIELD field_6641 reciprocalChance I FIELD field_6641 reciprocalChance I
COMMENT The reciprocal of chance to actually search for a target on every tick
COMMENT when this goal is not started. This is also the average number of ticks
COMMENT between each search (as in a poisson distribution).
FIELD field_6642 targetPredicate Lnet/minecraft/class_4051; FIELD field_6642 targetPredicate Lnet/minecraft/class_4051;
FIELD field_6643 targetClass Ljava/lang/Class; FIELD field_6643 targetClass Ljava/lang/Class;
FIELD field_6644 targetEntity Lnet/minecraft/class_1309; FIELD field_6644 targetEntity Lnet/minecraft/class_1309;

View File

@ -1,4 +1,5 @@
CLASS net/minecraft/class_3760 net/minecraft/entity/ai/goal/DisableableFollowTargetGoal CLASS net/minecraft/class_3760 net/minecraft/entity/ai/goal/DisableableFollowTargetGoal
COMMENT An active target goal that can be disabled so that it cannot start.
FIELD field_17281 enabled Z FIELD field_17281 enabled Z
METHOD <init> (Lnet/minecraft/class_3763;Ljava/lang/Class;IZZLjava/util/function/Predicate;)V METHOD <init> (Lnet/minecraft/class_3763;Ljava/lang/Class;IZZLjava/util/function/Predicate;)V
ARG 1 actor ARG 1 actor

View File

@ -1,7 +0,0 @@
CLASS net/minecraft/class_1404 net/minecraft/entity/ai/goal/FollowTargetIfTamedGoal
FIELD field_6656 tameable Lnet/minecraft/class_1321;
METHOD <init> (Lnet/minecraft/class_1321;Ljava/lang/Class;ZLjava/util/function/Predicate;)V
ARG 1 tameable
ARG 2 targetClass
ARG 3 checkVisibility
ARG 4 targetPredicate

View File

@ -1,4 +1,12 @@
CLASS net/minecraft/class_1405 net/minecraft/entity/ai/goal/TrackTargetGoal CLASS net/minecraft/class_1405 net/minecraft/entity/ai/goal/TrackTargetGoal
COMMENT A goal that maintains the target of a mob entity. If the goal stops,
COMMENT such as because the target is not valid, the target is removed from
COMMENT the owner mob.
COMMENT
COMMENT <p>Compared to other goals, this goal and its subclasses are added
COMMENT to the {@linkplain MobEntity#targetSelector target} than the regular
COMMENT goal selector, and should use the {@link Goal.Control#TARGET}
COMMENT control if it sets the owner's target.
FIELD field_30233 UNSET I FIELD field_30233 UNSET I
FIELD field_30234 CAN_TRACK I FIELD field_30234 CAN_TRACK I
FIELD field_30235 CANNOT_TRACK I FIELD field_30235 CANNOT_TRACK I

View File

@ -0,0 +1,10 @@
CLASS net/minecraft/class_1404 net/minecraft/entity/ai/goal/UntamedActiveTargetGoal
COMMENT An active target goal that only starts for untamed tameable animals.
COMMENT In addition, the continue condition for maintaining the target uses the
COMMENT target predicate than that of the standard track target goal.
FIELD field_6656 tameable Lnet/minecraft/class_1321;
METHOD <init> (Lnet/minecraft/class_1321;Ljava/lang/Class;ZLjava/util/function/Predicate;)V
ARG 1 tameable
ARG 2 targetClass
ARG 3 checkVisibility
ARG 4 targetPredicate

View File

@ -2,6 +2,7 @@ CLASS net/minecraft/class_5354 net/minecraft/entity/mob/Angerable
FIELD field_30093 ANGER_TIME_KEY Ljava/lang/String; FIELD field_30093 ANGER_TIME_KEY Ljava/lang/String;
FIELD field_30094 ANGRY_AT_KEY Ljava/lang/String; FIELD field_30094 ANGRY_AT_KEY Ljava/lang/String;
METHOD method_18395 canTarget (Lnet/minecraft/class_1309;)Z METHOD method_18395 canTarget (Lnet/minecraft/class_1309;)Z
ARG 1 target
METHOD method_29505 setAttacking (Lnet/minecraft/class_1657;)V METHOD method_29505 setAttacking (Lnet/minecraft/class_1657;)V
ARG 1 attacking ARG 1 attacking
METHOD method_29507 getAngerTime ()I METHOD method_29507 getAngerTime ()I
@ -9,6 +10,8 @@ CLASS net/minecraft/class_5354 net/minecraft/entity/mob/Angerable
METHOD method_29509 chooseRandomAngerTime ()V METHOD method_29509 chooseRandomAngerTime ()V
METHOD method_29510 tickAngerLogic (Lnet/minecraft/class_3218;Z)V METHOD method_29510 tickAngerLogic (Lnet/minecraft/class_3218;Z)V
ARG 1 world ARG 1 world
ARG 2 angerPersistent
COMMENT if {@code true}, the anger time will not decrease for a player target
METHOD method_29511 hasAngerTime ()Z METHOD method_29511 hasAngerTime ()Z
METHOD method_29512 readAngerFromNbt (Lnet/minecraft/class_1937;Lnet/minecraft/class_2487;)V METHOD method_29512 readAngerFromNbt (Lnet/minecraft/class_1937;Lnet/minecraft/class_2487;)V
ARG 1 world ARG 1 world
@ -18,6 +21,7 @@ CLASS net/minecraft/class_5354 net/minecraft/entity/mob/Angerable
METHOD method_29514 setAngerTime (I)V METHOD method_29514 setAngerTime (I)V
ARG 1 ticks ARG 1 ticks
METHOD method_29515 shouldAngerAt (Lnet/minecraft/class_1309;)Z METHOD method_29515 shouldAngerAt (Lnet/minecraft/class_1309;)Z
ARG 1 entity
METHOD method_29516 forgive (Lnet/minecraft/class_1657;)V METHOD method_29516 forgive (Lnet/minecraft/class_1657;)V
ARG 1 player ARG 1 player
METHOD method_29517 writeAngerToNbt (Lnet/minecraft/class_2487;)V METHOD method_29517 writeAngerToNbt (Lnet/minecraft/class_2487;)V

View File

@ -40,12 +40,15 @@ CLASS net/minecraft/class_1606 net/minecraft/entity/mob/ShulkerEntity
CLASS class_1607 ShootBulletGoal CLASS class_1607 ShootBulletGoal
FIELD field_7347 counter I FIELD field_7347 counter I
CLASS class_1608 ShulkerBodyControl CLASS class_1608 ShulkerBodyControl
CLASS class_1609 SearchForTargetGoal CLASS class_1609 TargetOtherTeamGoal
COMMENT A target goal on other teams' entities if this shulker belongs
COMMENT to a team.
METHOD <init> (Lnet/minecraft/class_1606;)V METHOD <init> (Lnet/minecraft/class_1606;)V
ARG 1 shulker ARG 1 shulker
METHOD method_7129 (Lnet/minecraft/class_1309;)Z METHOD method_7129 (Lnet/minecraft/class_1309;)Z
ARG 0 entity ARG 0 entity
CLASS class_1610 SearchForPlayerGoal CLASS class_1610 TargetPlayerGoal
COMMENT A hostile target goal on players.
METHOD <init> (Lnet/minecraft/class_1606;Lnet/minecraft/class_1606;)V METHOD <init> (Lnet/minecraft/class_1606;Lnet/minecraft/class_1606;)V
ARG 2 shulker ARG 2 shulker
CLASS class_1611 PeekGoal CLASS class_1611 PeekGoal

View File

@ -13,7 +13,7 @@ CLASS net/minecraft/class_1628 net/minecraft/entity/mob/SpiderEntity
FIELD field_7404 effect Lnet/minecraft/class_1291; FIELD field_7404 effect Lnet/minecraft/class_1291;
METHOD method_7168 setEffect (Ljava/util/Random;)V METHOD method_7168 setEffect (Ljava/util/Random;)V
ARG 1 random ARG 1 random
CLASS class_1631 FollowTargetGoal CLASS class_1631 TargetGoal
METHOD <init> (Lnet/minecraft/class_1628;Ljava/lang/Class;)V METHOD <init> (Lnet/minecraft/class_1628;Ljava/lang/Class;)V
ARG 1 spider ARG 1 spider
ARG 2 targetEntityClass ARG 2 targetEntityClass

View File

@ -24,7 +24,7 @@ CLASS net/minecraft/class_1634 net/minecraft/entity/mob/VexEntity
ARG 2 value ARG 2 value
CLASS class_1635 ChargeTargetGoal CLASS class_1635 ChargeTargetGoal
CLASS class_1636 TrackOwnerTargetGoal CLASS class_1636 TrackOwnerTargetGoal
FIELD field_18132 TRACK_OWNER_PREDICATE Lnet/minecraft/class_4051; FIELD field_18132 targetPredicate Lnet/minecraft/class_4051;
METHOD <init> (Lnet/minecraft/class_1634;Lnet/minecraft/class_1314;)V METHOD <init> (Lnet/minecraft/class_1634;Lnet/minecraft/class_1314;)V
ARG 2 mob ARG 2 mob
CLASS class_1637 VexMoveControl CLASS class_1637 VexMoveControl

View File

@ -5,7 +5,7 @@ CLASS net/minecraft/class_1632 net/minecraft/entity/mob/VindicatorEntity
METHOD method_20007 (Lnet/minecraft/class_1267;)Z METHOD method_20007 (Lnet/minecraft/class_1267;)Z
ARG 0 difficulty ARG 0 difficulty
METHOD method_26926 createVindicatorAttributes ()Lnet/minecraft/class_5132$class_5133; METHOD method_26926 createVindicatorAttributes ()Lnet/minecraft/class_5132$class_5133;
CLASS class_1633 FollowEntityGoal CLASS class_1633 TargetGoal
METHOD <init> (Lnet/minecraft/class_1632;)V METHOD <init> (Lnet/minecraft/class_1632;)V
ARG 1 vindicator ARG 1 vindicator
CLASS class_3761 BreakDoorGoal CLASS class_3761 BreakDoorGoal

View File

@ -104,7 +104,7 @@ CLASS net/minecraft/class_4466 net/minecraft/entity/passive/BeeEntity
ARG 2 mob ARG 2 mob
ARG 3 speed ARG 3 speed
ARG 5 pauseWhenMobIdle ARG 5 pauseWhenMobIdle
CLASS class_4469 BeeFollowTargetGoal CLASS class_4469 StingTargetGoal
METHOD <init> (Lnet/minecraft/class_4466;)V METHOD <init> (Lnet/minecraft/class_4466;)V
ARG 1 bee ARG 1 bee
METHOD method_21816 canSting ()Z METHOD method_21816 canSting ()Z

View File

@ -19,7 +19,8 @@ CLASS net/minecraft/class_1456 net/minecraft/entity/passive/PolarBearEntity
METHOD method_6602 playWarningSound ()V METHOD method_6602 playWarningSound ()V
METHOD method_6603 setWarning (Z)V METHOD method_6603 setWarning (Z)V
ARG 1 warning ARG 1 warning
CLASS class_1457 FollowPlayersGoal CLASS class_1457 ProtectBabiesGoal
COMMENT A target goal on players when this polar bear is near a baby polar bear.
CLASS class_1459 PolarBearRevengeGoal CLASS class_1459 PolarBearRevengeGoal
CLASS class_1460 AttackGoal CLASS class_1460 AttackGoal
CLASS class_1461 PolarBearEscapeDangerGoal CLASS class_1461 PolarBearEscapeDangerGoal

View File

@ -222,7 +222,8 @@ CLASS net/minecraft/class_3218 net/minecraft/server/world/ServerWorld
ARG 1 vibration ARG 1 vibration
METHOD method_32818 (Lnet/minecraft/class_2338;Lnet/minecraft/class_5747;Lnet/minecraft/class_3222;)V METHOD method_32818 (Lnet/minecraft/class_2338;Lnet/minecraft/class_5747;Lnet/minecraft/class_3222;)V
ARG 3 player ARG 3 player
METHOD method_33143 handleSleeping ()V METHOD method_33143 sendSleepingStatus ()V
COMMENT Sends sleeping status action bar messages to players in this world.
METHOD method_33144 isSleepingEnabled ()Z METHOD method_33144 isSleepingEnabled ()Z
METHOD method_34679 (Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338; METHOD method_34679 (Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
ARG 0 pos ARG 0 pos

View File

@ -41,12 +41,14 @@ CLASS net/minecraft/class_1158 net/minecraft/util/math/Quaternion
ARG 1 y ARG 1 y
ARG 2 z ARG 2 z
METHOD method_35823 fromEulerXyzDegrees (Lnet/minecraft/class_1160;)Lnet/minecraft/class_1158; METHOD method_35823 fromEulerXyzDegrees (Lnet/minecraft/class_1160;)Lnet/minecraft/class_1158;
ARG 0 vector
METHOD method_35824 toEulerYxzDegrees ()Lnet/minecraft/class_1160; METHOD method_35824 toEulerYxzDegrees ()Lnet/minecraft/class_1160;
METHOD method_35825 fromEulerXyz (FFF)Lnet/minecraft/class_1158; METHOD method_35825 fromEulerXyz (FFF)Lnet/minecraft/class_1158;
ARG 0 x ARG 0 x
ARG 1 y ARG 1 y
ARG 2 z ARG 2 z
METHOD method_35826 fromEulerXyz (Lnet/minecraft/class_1160;)Lnet/minecraft/class_1158; METHOD method_35826 fromEulerXyz (Lnet/minecraft/class_1160;)Lnet/minecraft/class_1158;
ARG 0 vector
METHOD method_35827 toEulerXyz ()Lnet/minecraft/class_1160; METHOD method_35827 toEulerXyz ()Lnet/minecraft/class_1160;
METHOD method_35828 toEulerXyzDegrees ()Lnet/minecraft/class_1160; METHOD method_35828 toEulerXyzDegrees ()Lnet/minecraft/class_1160;
METHOD method_4921 getX ()F METHOD method_4921 getX ()F