Some nullable client field docs, and other misc docs (#1617)

* Some nullable client field docs, and other misc docs

* Update mappings/net/minecraft/world/World.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:
i509VCB 2020-08-12 02:21:57 -05:00 committed by GitHub
parent c2de8dc750
commit d259d20a26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 0 deletions

View File

@ -3,6 +3,8 @@ CLASS net/minecraft/class_310 net/minecraft/client/MinecraftClient
FIELD field_16762 game Lnet/minecraft/class_3799;
FIELD field_1686 windowProvider Lnet/minecraft/class_3682;
FIELD field_1687 world Lnet/minecraft/class_638;
COMMENT Represents the world the client is currently viewing.
COMMENT This field is not null when in game.
FIELD field_1688 metricsData Lnet/minecraft/class_3517;
FIELD field_1689 framebuffer Lnet/minecraft/class_276;
FIELD field_1690 options Lnet/minecraft/class_315;
@ -36,6 +38,8 @@ CLASS net/minecraft/class_310 net/minecraft/client/MinecraftClient
FIELD field_1722 builtinPackProvider Lnet/minecraft/class_1066;
FIELD field_1723 sessionService Lcom/mojang/authlib/minecraft/MinecraftSessionService;
FIELD field_1724 player Lnet/minecraft/class_746;
COMMENT Represents the client's own player.
COMMENT This field is not null when in game.
FIELD field_1726 session Lnet/minecraft/class_320;
FIELD field_1727 soundManager Lnet/minecraft/class_1144;
FIELD field_1728 renderTickCounter Lnet/minecraft/class_317;

View File

@ -11,6 +11,17 @@ CLASS net/minecraft/class_638 net/minecraft/client/world/ClientWorld
FIELD field_3727 netHandler Lnet/minecraft/class_634;
FIELD field_3729 client Lnet/minecraft/class_310;
FIELD field_3733 scoreboard Lnet/minecraft/class_269;
METHOD <init> (Lnet/minecraft/class_634;Lnet/minecraft/class_638$class_5271;Lnet/minecraft/class_5321;Lnet/minecraft/class_5321;Lnet/minecraft/class_2874;ILjava/util/function/Supplier;Lnet/minecraft/class_761;ZJ)V
ARG 1 networkHandler
ARG 2 properties
ARG 3 worldRef
ARG 4 dimensionRef
ARG 5 dimensionType
ARG 6 loadDistance
ARG 7 profiler
ARG 8 worldRenderer
ARG 9 debugWorld
ARG 10 seed
METHOD method_18107 addPlayer (ILnet/minecraft/class_742;)V
ARG 1 id
ARG 2 player
@ -38,6 +49,8 @@ CLASS net/minecraft/class_638 net/minecraft/client/world/ClientWorld
METHOD method_18648 checkEntityChunkPos (Lnet/minecraft/class_1297;)V
COMMENT Validates if an entity's current position matches its chunk position. If the entity's chunk position and actual position don't match, then the entity will be moved to its new chunk.
ARG 1 entity
METHOD method_23778 (Lit/unimi/dsi/fastutil/objects/Object2ObjectArrayMap;)V
ARG 0 cache
METHOD method_23780 calculateColor (Lnet/minecraft/class_2338;Lnet/minecraft/world/level/ColorResolver;)I
ARG 1 pos
ARG 2 colorResolver

View File

@ -78,6 +78,10 @@ CLASS net/minecraft/class_1937 net/minecraft/world/World
ARG 2 entity
ARG 3 direction
METHOD method_27982 isDebugWorld ()Z
COMMENT Checks if this world is a debug world.
COMMENT
COMMENT <p>Debug worlds are not modifiable and are typically meant for development and debug use only.
COMMENT See <a href="https://minecraft.gamepedia.com/Debug_mode">the minecraft wiki</a> as well.
METHOD method_27983 getRegistryKey ()Lnet/minecraft/class_5321;
METHOD method_8413 updateListeners (Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2680;I)V
ARG 1 pos