Skip to content

Commit

Permalink
Revise some Entity Brain Tasks names to better reflect their function (
Browse files Browse the repository at this point in the history
…#3992)

* Revise some Entity Brain Tasks names to better reflect their function

* Revise many Brain task names related to Walk and Look targets

---------

Co-authored-by: Sparrow Mica <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Shnupbups <[email protected]>
  • Loading branch information
4 people authored Oct 7, 2024
1 parent b5a1fca commit dbd154f
Show file tree
Hide file tree
Showing 19 changed files with 67 additions and 67 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_4116 net/minecraft/entity/ai/brain/task/GoToIfNearbyTask
CLASS net/minecraft/class_4116 net/minecraft/entity/ai/brain/task/GoAroundTask
FIELD field_30179 UPDATE_INTERVAL I
FIELD field_30180 HORIZONTAL_RANGE I
FIELD field_30181 VERTICAL_RANGE I
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_4289 net/minecraft/entity/ai/brain/task/WanderIndoorsTask
CLASS net/minecraft/class_4289 net/minecraft/entity/ai/brain/task/GoIndoorsTask
METHOD method_46949 create (F)Lnet/minecraft/class_7893;
ARG 0 speed
METHOD method_46950 (FLnet/minecraft/class_7898$class_7900;)Lcom/mojang/datafixers/kinds/App;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CLASS net/minecraft/class_4458 net/minecraft/entity/ai/brain/task/GoToCloserPointOfInterestTask
METHOD method_46934 create (FI)Lnet/minecraft/class_7893;
ARG 0 speed
ARG 1 completionRange
METHOD method_46935 (FILnet/minecraft/class_7898$class_7900;)Lcom/mojang/datafixers/kinds/App;
ARG 2 context
METHOD method_46936 (FILnet/minecraft/class_7906;)Lnet/minecraft/class_7911;
ARG 2 walkTarget
METHOD method_46937 (Lnet/minecraft/class_7906;FILnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
ARG 3 world
ARG 4 entity
ARG 5 time
METHOD method_46938 (Lnet/minecraft/class_4153;Lnet/minecraft/class_2338;)D
ARG 1 pos
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_4290 net/minecraft/entity/ai/brain/task/WalkHomeTask
CLASS net/minecraft/class_4290 net/minecraft/entity/ai/brain/task/GoToHomeTask
FIELD field_30161 POI_EXPIRY I
COMMENT Represents the number of ticks ({@value}) that this task will
COMMENT remember a point of interest after starting to move towards it.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_4120 net/minecraft/entity/ai/brain/task/GoTowardsLookTargetTask
CLASS net/minecraft/class_4120 net/minecraft/entity/ai/brain/task/GoToLookTargetTask
METHOD method_47104 create (FI)Lnet/minecraft/class_7894;
ARG 0 speed
ARG 1 completionRange
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
CLASS net/minecraft/class_4458 net/minecraft/entity/ai/brain/task/GoToPointOfInterestTask
METHOD method_46934 create (FI)Lnet/minecraft/class_7893;
ARG 0 speed
ARG 1 completionRange
METHOD method_46935 (FILnet/minecraft/class_7898$class_7900;)Lcom/mojang/datafixers/kinds/App;
ARG 2 context
METHOD method_46936 (FILnet/minecraft/class_7906;)Lnet/minecraft/class_7911;
ARG 2 walkTarget
METHOD method_46937 (Lnet/minecraft/class_7906;FILnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
ARG 3 world
ARG 4 entity
ARG 5 time
METHOD method_46938 (Lnet/minecraft/class_4153;Lnet/minecraft/class_2338;)D
CLASS net/minecraft/class_4117 net/minecraft/entity/ai/brain/task/GoToPointOfInterestTask
FIELD field_30186 DEFAULT_HORIZONTAL_RANGE I
FIELD field_30187 DEFAULT_VERTICAL_RANGE I
METHOD method_47191 create (F)Lnet/minecraft/class_7894;
ARG 0 walkSpeed
METHOD method_47192 create (FII)Lnet/minecraft/class_7894;
ARG 0 walkSpeed
ARG 1 horizontalRange
ARG 2 verticalRange
METHOD method_47193 (FLnet/minecraft/class_243;)Lnet/minecraft/class_4142;
ARG 1 pos
METHOD method_47194 (IIFLnet/minecraft/class_7898$class_7900;)Lcom/mojang/datafixers/kinds/App;
ARG 3 context
METHOD method_47195 (IIFLnet/minecraft/class_7906;)Lnet/minecraft/class_7911;
ARG 3 walkTarget
METHOD method_47196 (IILnet/minecraft/class_7906;FLnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)Z
ARG 4 world
ARG 5 entity
ARG 6 time
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_4219 net/minecraft/entity/ai/brain/task/GoToNearbyPositionTask
CLASS net/minecraft/class_4219 net/minecraft/entity/ai/brain/task/GoToPosTask
METHOD method_47155 (Lnet/minecraft/class_7898$class_7900;ILorg/apache/commons/lang3/mutable/MutableLong;FILnet/minecraft/class_7906;Lnet/minecraft/class_7906;)Lnet/minecraft/class_7911;
ARG 5 walkTarget
ARG 6 pos
Expand Down
18 changes: 10 additions & 8 deletions mappings/net/minecraft/entity/ai/brain/task/LookAroundTask.mapping
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
CLASS net/minecraft/class_4110 net/minecraft/entity/ai/brain/task/LookAroundTask
METHOD <init> (II)V
ARG 1 minRunTime
ARG 2 maxRunTime
METHOD method_18966 (Lnet/minecraft/class_1308;Lnet/minecraft/class_4115;)V
ARG 1 lookTarget
METHOD method_19569 (Lnet/minecraft/class_1308;Lnet/minecraft/class_4115;)Z
ARG 1 lookTarget
CLASS net/minecraft/class_7687 net/minecraft/entity/ai/brain/task/LookAroundTask
FIELD field_40119 cooldown Lnet/minecraft/class_6017;
FIELD field_40120 maxYaw F
FIELD field_40121 minPitch F
FIELD field_40122 pitchRange F
METHOD <init> (Lnet/minecraft/class_6017;FFF)V
ARG 1 cooldown
ARG 2 maxYaw
ARG 3 minPitch
ARG 4 maxPitch

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_4215 net/minecraft/entity/ai/brain/task/LookTargetUtil
CLASS net/minecraft/class_4215 net/minecraft/entity/ai/brain/task/TargetUtil
METHOD method_19547 (Lnet/minecraft/class_1299;Lnet/minecraft/class_1309;)Z
ARG 1 entity
METHOD method_19548 lookAtAndWalkTowardsEachOther (Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;FI)V
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CLASS net/minecraft/class_5753 net/minecraft/entity/ai/brain/task/TickCooldownTask
FIELD field_30113 cooldownModule Lnet/minecraft/class_4140;
METHOD <init> (Lnet/minecraft/class_4140;)V
ARG 1 cooldownModule
METHOD method_33194 getRemainingCooldownTicks (Lnet/minecraft/class_1309;)Ljava/util/Optional;
ARG 1 entity
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_4114 net/minecraft/entity/ai/brain/task/GoToWorkTask
CLASS net/minecraft/class_4114 net/minecraft/entity/ai/brain/task/UpdateJobSiteTask
METHOD method_46887 create ()Lnet/minecraft/class_7893;
METHOD method_46888 (Lnet/minecraft/class_7898$class_7900;)Lcom/mojang/datafixers/kinds/App;
ARG 0 context
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CLASS net/minecraft/class_4110 net/minecraft/entity/ai/brain/task/UpdateLookControlTask
METHOD <init> (II)V
ARG 1 minRunTime
ARG 2 maxRunTime
METHOD method_18966 (Lnet/minecraft/class_1308;Lnet/minecraft/class_4115;)V
ARG 1 lookTarget
METHOD method_19569 (Lnet/minecraft/class_1308;Lnet/minecraft/class_4115;)Z
ARG 1 lookTarget
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_5355 net/minecraft/entity/ai/brain/task/WalkTowardClosestAdultTask
CLASS net/minecraft/class_5355 net/minecraft/entity/ai/brain/task/WalkTowardsClosestAdultTask
METHOD method_46895 (FLnet/minecraft/class_1309;)Ljava/lang/Float;
ARG 1 entity
METHOD method_46896 create (Lnet/minecraft/class_6019;F)Lnet/minecraft/class_7894;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_4814 net/minecraft/entity/ai/brain/task/WalkTowardsPosTask
CLASS net/minecraft/class_4814 net/minecraft/entity/ai/brain/task/WalkTowardsFuzzyPosTask
METHOD method_24577 fuzz (Lnet/minecraft/class_1308;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
ARG 0 mob
ARG 1 pos
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_5325 net/minecraft/entity/ai/brain/task/WalkTowardJobSiteTask
CLASS net/minecraft/class_5325 net/minecraft/entity/ai/brain/task/WalkTowardsJobSiteTask
FIELD field_25155 speed F
FIELD field_30122 RUN_TIME I
METHOD <init> (F)V
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CLASS net/minecraft/class_4815 net/minecraft/entity/ai/brain/task/WalkToNearestVisibleWantedItemTask
CLASS net/minecraft/class_4815 net/minecraft/entity/ai/brain/task/WalkTowardsNearestVisibleWantedItemTask
METHOD method_46943 create (FZI)Lnet/minecraft/class_7893;
ARG 0 speed
ARG 1 requiresWalkTarget
Expand Down

0 comments on commit dbd154f

Please sign in to comment.