From 52b23df47114a293df0f88134d6717bfaca0bdc9 Mon Sep 17 00:00:00 2001 From: apple502j <33279053+apple502j@users.noreply.github.com> Date: Fri, 2 Apr 2021 05:14:34 +0900 Subject: [PATCH] Map two debug commands (#2219) --- .../entity/ai/pathing/EntityNavigation.mapping | 1 + .../server/command/DebugMobSpawningCommand.mapping | 11 +++++++++++ .../server/command/DebugPathCommand.mapping | 13 +++++++++++++ mappings/net/minecraft/world/SpawnHelper.mapping | 11 +++++++++++ 4 files changed, 36 insertions(+) create mode 100644 mappings/net/minecraft/server/command/DebugMobSpawningCommand.mapping create mode 100644 mappings/net/minecraft/server/command/DebugPathCommand.mapping diff --git a/mappings/net/minecraft/entity/ai/pathing/EntityNavigation.mapping b/mappings/net/minecraft/entity/ai/pathing/EntityNavigation.mapping index 1db43cddfb..075318f14a 100644 --- a/mappings/net/minecraft/entity/ai/pathing/EntityNavigation.mapping +++ b/mappings/net/minecraft/entity/ai/pathing/EntityNavigation.mapping @@ -40,6 +40,7 @@ CLASS net/minecraft/class_1408 net/minecraft/entity/ai/pathing/EntityNavigation METHOD method_26085 resetNode ()V METHOD method_31266 resetNodeAndStop ()V METHOD method_31267 isNearPathStartPos ()Z + METHOD method_35143 getNodeReachProximity ()F METHOD method_6333 isValidPosition (Lnet/minecraft/class_2338;)Z ARG 1 pos METHOD method_6334 startMovingAlong (Lnet/minecraft/class_11;D)Z diff --git a/mappings/net/minecraft/server/command/DebugMobSpawningCommand.mapping b/mappings/net/minecraft/server/command/DebugMobSpawningCommand.mapping new file mode 100644 index 0000000000..fbb25b4bd1 --- /dev/null +++ b/mappings/net/minecraft/server/command/DebugMobSpawningCommand.mapping @@ -0,0 +1,11 @@ +CLASS net/minecraft/class_6326 net/minecraft/server/command/DebugMobSpawningCommand + METHOD method_36183 (Lnet/minecraft/class_1311;Lcom/mojang/brigadier/context/CommandContext;)I + ARG 1 context + METHOD method_36184 register (Lcom/mojang/brigadier/CommandDispatcher;)V + ARG 0 dispatcher + METHOD method_36185 (Lnet/minecraft/class_2168;)Z + ARG 0 source + METHOD method_36186 execute (Lnet/minecraft/class_2168;Lnet/minecraft/class_1311;Lnet/minecraft/class_2338;)I + ARG 0 source + ARG 1 group + ARG 2 pos diff --git a/mappings/net/minecraft/server/command/DebugPathCommand.mapping b/mappings/net/minecraft/server/command/DebugPathCommand.mapping new file mode 100644 index 0000000000..f8d67d8d03 --- /dev/null +++ b/mappings/net/minecraft/server/command/DebugPathCommand.mapping @@ -0,0 +1,13 @@ +CLASS net/minecraft/class_6327 net/minecraft/server/command/DebugPathCommand + FIELD field_33387 SOURCE_NOT_MOB_EXCEPTION Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType; + FIELD field_33388 PATH_NOT_FOUND_EXCEPTION Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType; + FIELD field_33389 TARGET_NOT_REACHED_EXCEPTION Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType; + METHOD method_36187 register (Lcom/mojang/brigadier/CommandDispatcher;)V + ARG 0 dispatcher + METHOD method_36188 (Lcom/mojang/brigadier/context/CommandContext;)I + ARG 0 context + METHOD method_36189 (Lnet/minecraft/class_2168;)Z + ARG 0 source + METHOD method_36190 execute (Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;)I + ARG 0 source + ARG 1 pos diff --git a/mappings/net/minecraft/world/SpawnHelper.mapping b/mappings/net/minecraft/world/SpawnHelper.mapping index 89d50a2e8d..8236a6f95f 100644 --- a/mappings/net/minecraft/world/SpawnHelper.mapping +++ b/mappings/net/minecraft/world/SpawnHelper.mapping @@ -61,6 +61,17 @@ CLASS net/minecraft/class_1948 net/minecraft/world/SpawnHelper ARG 3 spawnGroup ARG 4 pos ARG 5 biome + METHOD method_35238 (Lnet/minecraft/class_1299;Lnet/minecraft/class_2338;Lnet/minecraft/class_2791;)Z + ARG 0 type + ARG 1 pos + ARG 2 chunk + METHOD method_35239 (Lnet/minecraft/class_1308;Lnet/minecraft/class_2791;)V + ARG 0 entity + ARG 1 chunk + METHOD method_35240 spawnEntitiesInChunk (Lnet/minecraft/class_1311;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)V + ARG 0 group + ARG 1 world + ARG 2 pos METHOD method_8657 getSpawnPos (Lnet/minecraft/class_1937;Lnet/minecraft/class_2818;)Lnet/minecraft/class_2338; ARG 0 world ARG 1 chunk