From 1d2c617b87825b340bfee03b294d7e831b41e2c1 Mon Sep 17 00:00:00 2001 From: i509VCB Date: Mon, 1 Jun 2020 14:36:30 -0700 Subject: [PATCH] World related mappings and docs (#1407) * World related mappings. * Update mappings/net/minecraft/world/BlockView.mapping Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> * Update mappings/net/minecraft/world/WorldView.mapping Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com> --- .../minecraft/server/world/ServerChunkManager.mapping | 1 + .../net/minecraft/server/world/ServerWorld.mapping | 11 +++++++++++ mappings/net/minecraft/world/BlockView.mapping | 1 + mappings/net/minecraft/world/ChunkRegion.mapping | 7 +++++++ mappings/net/minecraft/world/ModifiableWorld.mapping | 1 + mappings/net/minecraft/world/World.mapping | 2 ++ mappings/net/minecraft/world/WorldView.mapping | 4 ++++ mappings/net/minecraft/world/chunk/Chunk.mapping | 1 + 8 files changed, 28 insertions(+) diff --git a/mappings/net/minecraft/server/world/ServerChunkManager.mapping b/mappings/net/minecraft/server/world/ServerChunkManager.mapping index ee1d0c7e9e..c6f5d37059 100644 --- a/mappings/net/minecraft/server/world/ServerChunkManager.mapping +++ b/mappings/net/minecraft/server/world/ServerChunkManager.mapping @@ -22,6 +22,7 @@ CLASS net/minecraft/class_3215 net/minecraft/server/world/ServerChunkManager ARG 6 chunkGenerator ARG 7 viewDistance METHOD method_12127 tick (Ljava/util/function/BooleanSupplier;)V + ARG 1 shouldKeepTicking METHOD method_12129 getChunkGenerator ()Lnet/minecraft/class_2794; METHOD method_14096 updateCameraPosition (Lnet/minecraft/class_3222;)V ARG 1 player diff --git a/mappings/net/minecraft/server/world/ServerWorld.mapping b/mappings/net/minecraft/server/world/ServerWorld.mapping index bed902eab4..7397c1dba3 100644 --- a/mappings/net/minecraft/server/world/ServerWorld.mapping +++ b/mappings/net/minecraft/server/world/ServerWorld.mapping @@ -18,7 +18,14 @@ CLASS net/minecraft/class_3218 net/minecraft/server/world/ServerWorld FIELD field_18264 inEntityTick Z FIELD field_18811 raidManager Lnet/minecraft/class_3767; FIELD field_23787 structureAccessor Lnet/minecraft/class_5138; + FIELD field_24624 serverChunkManager Lnet/minecraft/class_3215; FIELD field_25142 enderDragonFight Lnet/minecraft/class_2881; + METHOD (Lnet/minecraft/server/MinecraftServer;Ljava/util/concurrent/Executor;Lnet/minecraft/class_32$class_5143;Lnet/minecraft/class_5268;Lnet/minecraft/class_5321;Lnet/minecraft/class_5321;Lnet/minecraft/class_2874;Lnet/minecraft/class_3949;Lnet/minecraft/class_2794;ZJLjava/util/List;Z)V + ARG 1 server + ARG 2 workerExecutor + ARG 3 session + ARG 4 properties + ARG 8 generationProgressListener METHOD method_14166 spawnParticles (Lnet/minecraft/class_3222;Lnet/minecraft/class_2394;ZDDDIDDDD)Z ARG 1 viewer ARG 2 particle @@ -90,6 +97,10 @@ CLASS net/minecraft/class_3218 net/minecraft/server/world/ServerWorld METHOD method_18215 onPlayerRespawned (Lnet/minecraft/class_3222;)V ARG 1 player METHOD method_18762 tickEntity (Lnet/minecraft/class_1297;)V + ARG 1 entity + METHOD method_18763 tickPassenger (Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;)V + ARG 1 vehicle + ARG 2 passenger METHOD method_18764 unloadEntities (Lnet/minecraft/class_2818;)V ARG 1 chunk METHOD method_18765 tick (Ljava/util/function/BooleanSupplier;)V diff --git a/mappings/net/minecraft/world/BlockView.mapping b/mappings/net/minecraft/world/BlockView.mapping index 23d49415f6..09520afc39 100644 --- a/mappings/net/minecraft/world/BlockView.mapping +++ b/mappings/net/minecraft/world/BlockView.mapping @@ -1,4 +1,5 @@ CLASS net/minecraft/class_1922 net/minecraft/world/BlockView + COMMENT Represents a scoped, read-only view of block states, fluid states and block entities. METHOD method_17742 rayTrace (Lnet/minecraft/class_3959;)Lnet/minecraft/class_3965; ARG 1 context METHOD method_17744 rayTrace (Lnet/minecraft/class_3959;Ljava/util/function/BiFunction;Ljava/util/function/Function;)Ljava/lang/Object; diff --git a/mappings/net/minecraft/world/ChunkRegion.mapping b/mappings/net/minecraft/world/ChunkRegion.mapping index 2380827e79..b9a4819c64 100644 --- a/mappings/net/minecraft/world/ChunkRegion.mapping +++ b/mappings/net/minecraft/world/ChunkRegion.mapping @@ -12,9 +12,16 @@ CLASS net/minecraft/class_3233 net/minecraft/world/ChunkRegion FIELD field_14098 chunks Ljava/util/List; FIELD field_14099 blockTickScheduler Lnet/minecraft/class_1951; FIELD field_20668 biomeAccess Lnet/minecraft/class_4543; + FIELD field_23788 lowerCorner Lnet/minecraft/class_1923; + FIELD field_23789 upperCorner Lnet/minecraft/class_1923; METHOD (Lnet/minecraft/class_3218;Ljava/util/List;)V ARG 1 world ARG 2 chunks METHOD method_14336 getCenterChunkX ()I + METHOD method_14337 (Lnet/minecraft/class_2338;)Lnet/minecraft/class_1951; + ARG 1 pos METHOD method_14338 markBlockForPostProcessing (Lnet/minecraft/class_2338;)V + ARG 1 pos METHOD method_14339 getCenterChunkZ ()I + METHOD method_14340 (Lnet/minecraft/class_2338;)Lnet/minecraft/class_1951; + ARG 1 pos diff --git a/mappings/net/minecraft/world/ModifiableWorld.mapping b/mappings/net/minecraft/world/ModifiableWorld.mapping index 7ef76201a1..f59026d389 100644 --- a/mappings/net/minecraft/world/ModifiableWorld.mapping +++ b/mappings/net/minecraft/world/ModifiableWorld.mapping @@ -1,4 +1,5 @@ CLASS net/minecraft/class_1945 net/minecraft/world/ModifiableWorld + COMMENT Represents a modifable world where block states can be changed and entities spawned. METHOD method_22352 breakBlock (Lnet/minecraft/class_2338;Z)Z ARG 1 pos ARG 2 drop diff --git a/mappings/net/minecraft/world/World.mapping b/mappings/net/minecraft/world/World.mapping index 5259d8b916..34c4673c5c 100644 --- a/mappings/net/minecraft/world/World.mapping +++ b/mappings/net/minecraft/world/World.mapping @@ -21,6 +21,8 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World FIELD field_9251 thunderGradientPrev F FIELD field_9253 rainGradientPrev F FIELD field_9256 lcgBlockSeed I + METHOD (Lnet/minecraft/class_5269;Lnet/minecraft/class_5321;Lnet/minecraft/class_5321;Lnet/minecraft/class_2874;Ljava/util/function/Supplier;ZZJ)V + ARG 5 profiler METHOD method_16107 getProfiler ()Lnet/minecraft/class_3695; METHOD method_16109 scheduleBlockRerenderIfNeeded (Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;)V ARG 1 pos diff --git a/mappings/net/minecraft/world/WorldView.mapping b/mappings/net/minecraft/world/WorldView.mapping index 4ec0f57e8f..dc3aa3775f 100644 --- a/mappings/net/minecraft/world/WorldView.mapping +++ b/mappings/net/minecraft/world/WorldView.mapping @@ -1,4 +1,5 @@ CLASS net/minecraft/class_4538 net/minecraft/world/WorldView + COMMENT Represents a scoped, read-only view of a world like structure that contains biomes, chunks and is bound to a dimension. METHOD method_22339 getLightLevel (Lnet/minecraft/class_2338;)I ARG 1 pos METHOD method_22340 isChunkLoaded (Lnet/minecraft/class_2338;)Z @@ -59,6 +60,9 @@ CLASS net/minecraft/class_4538 net/minecraft/world/WorldView ARG 1 heightmap ARG 2 pos METHOD method_8608 isClient ()Z + COMMENT Checks if this world view is on the logical client. + COMMENT + COMMENT

If the value returned is false, it is expected that this world is present on a logical server. METHOD method_8615 getSeaLevel ()I METHOD method_8624 getTopY (Lnet/minecraft/class_2902$class_2903;II)I ARG 1 heightmap diff --git a/mappings/net/minecraft/world/chunk/Chunk.mapping b/mappings/net/minecraft/world/chunk/Chunk.mapping index 8a80f83151..336e121a1d 100644 --- a/mappings/net/minecraft/world/chunk/Chunk.mapping +++ b/mappings/net/minecraft/world/chunk/Chunk.mapping @@ -1,4 +1,5 @@ CLASS net/minecraft/class_2791 net/minecraft/world/chunk/Chunk + COMMENT Represents a scoped, modifable view of biomes, block states, fluid states and block entities. METHOD method_12002 addEntity (Lnet/minecraft/class_1297;)V ARG 1 entity METHOD method_12003 getUpgradeData ()Lnet/minecraft/class_2843;