21w13a entity ai stuff (#2255)

* entity

* Apply suggestions from code review

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* nbt_key -> key

* Update mappings/net/minecraft/entity/EntityType.mapping

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* AI stuff

* Update mappings/net/minecraft/entity/ai/brain/sensor/AxolotlAttackablesSensor.mapping

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
This commit is contained in:
Shnupbups 2021-04-03 05:06:05 +11:00 committed by GitHub
parent 5171529cf9
commit 333a6d75b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,10 @@
CLASS net/minecraft/class_6044 net/minecraft/entity/ai/brain/sensor/AxolotlAttackablesSensor
METHOD method_35144 canHunt (Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
ARG 1 axolotl
ARG 2 target
METHOD method_35145 isAlwaysHostileTo (Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
ARG 1 axolotl
ARG 2 target
METHOD method_35146 isInRange (Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
ARG 1 axolotl
ARG 2 target

View File

@ -0,0 +1,9 @@
CLASS net/minecraft/class_6045 net/minecraft/entity/ai/brain/sensor/NearestVisibleLivingEntitySensor
METHOD method_35147 getVisibleLivingEntities (Lnet/minecraft/class_1309;)Ljava/util/Optional;
ARG 1 entity
METHOD method_35148 matches (Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
ARG 1 entity
ARG 2 target
METHOD method_35150 getOutputMemoryModule ()Lnet/minecraft/class_4140;
METHOD method_35151 getNearestVisibleLivingEntity (Lnet/minecraft/class_1309;)Ljava/util/Optional;
ARG 1 entity

View File

@ -3,3 +3,5 @@ CLASS net/minecraft/class_4150 net/minecraft/entity/ai/brain/sensor/VillagerHost
METHOD method_19104 isHostile (Lnet/minecraft/class_1309;)Z
ARG 1 entity
METHOD method_19105 isCloseEnoughForDanger (Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
ARG 1 villager
ARG 2 target

View File

@ -0,0 +1 @@
CLASS net/minecraft/class_6035 net/minecraft/entity/ai/control/Control

View File

@ -19,6 +19,8 @@ CLASS net/minecraft/class_1333 net/minecraft/entity/ai/control/LookControl
METHOD method_20250 getTargetPitch ()F
METHOD method_20251 getTargetYaw ()F
METHOD method_20433 shouldStayHorizontal ()Z
METHOD method_35111 lookAt (Lnet/minecraft/class_1297;)V
ARG 1 entity
METHOD method_6225 getLookX ()D
METHOD method_6226 lookAt (Lnet/minecraft/class_1297;FF)V
ARG 1 entity