Some javadoc and param names in mostly server related classes. (#1278)

* Some javadoc and param names in mostly server related classes.

* Update mappings/net/minecraft/client/gui/hud/InGameHud.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

* Update mappings/net/minecraft/server/rcon/RconBase.mapping

Co-Authored-By: Yanis48 <doublecraft.official@gmail.com>

* Make javadoc a bit nicer

* fixes 2

* Update ArgumentTypes.mapping

Co-authored-by: Yanis48 <doublecraft.official@gmail.com>
This commit is contained in:
i509VCB 2020-04-30 11:19:49 +00:00 committed by GitHub
parent 2da805da6b
commit 07205b5cbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 66 additions and 0 deletions

View File

@ -17,3 +17,7 @@ CLASS net/minecraft/class_2316 net/minecraft/command/arguments/ArgumentTypes
FIELD field_10924 argClass Ljava/lang/Class;
FIELD field_10925 id Lnet/minecraft/class_2960;
FIELD field_10926 serializer Lnet/minecraft/class_2314;
METHOD <init> (Ljava/lang/Class;Lnet/minecraft/class_2314;Lnet/minecraft/class_2960;)V
ARG 1 argumentClass
ARG 2 serializer
ARG 3 id

View File

@ -1,4 +1,7 @@
CLASS net/minecraft/class_1133 net/minecraft/server/LanServerPinger
COMMENT Used to send UDP multicasts to notify other clients of a local game on the same network.
COMMENT
COMMENT <p>These multicasts will always be sent to {@code 224.0.2.60:4445} where other clients can listen for local games.
FIELD field_5525 THREAD_ID Ljava/util/concurrent/atomic/AtomicInteger;
FIELD field_5526 motd Ljava/lang/String;
FIELD field_5527 running Z
@ -9,8 +12,23 @@ CLASS net/minecraft/class_1133 net/minecraft/server/LanServerPinger
ARG 1 motd
ARG 2 addressPort
METHOD method_4818 createAnnouncement (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
COMMENT Creates a server announcement.
COMMENT
COMMENT <pre>
COMMENT <blockquote>[MOTD]</blockquote> // Specifies the beginning of the message of the day
COMMENT <blockquote>A message of the day</blockquote> // The message of the day
COMMENT <blockquote>[/MOTD]</blockquote> // Specifies the end of the message of the day.
COMMENT <blockquote>[AD]</blockquote> // Specifies the beginning of the address and the port of the local server.
COMMENT <blockquote>the address of the local server.</blockquote> // Such as {@code 192.146.2.1:23132}
COMMENT <blockquote>[/AD]</blockquote> // Specifies the end of the address and port of the local server.
COMMENT </pre>
COMMENT
COMMENT <p>An example of a complete announcement:
COMMENT {@code [MOTD]A Player's Server[/MOTD][AD]192.168.0.33[/AD]}
ARG 0 motd
COMMENT the message of the day
ARG 1 addressPort
COMMENT the address of the server including the IP address and port
METHOD method_4819 parseAnnouncementMotd (Ljava/lang/String;)Ljava/lang/String;
ARG 0 announcement
METHOD method_4820 parseAnnouncementAddressPort (Ljava/lang/String;)Ljava/lang/String;

View File

@ -1,4 +1,5 @@
CLASS net/minecraft/class_2926 net/minecraft/server/ServerMetadata
COMMENT Represents metadata sent to the client. This describes the server's message of the day, online players and the protocol version.
FIELD field_13283 favicon Ljava/lang/String;
FIELD field_13284 description Lnet/minecraft/class_2561;
FIELD field_13285 players Lnet/minecraft/class_2926$class_2927;

View File

@ -3,6 +3,7 @@ CLASS net/minecraft/class_3050 net/minecraft/server/command/ExecuteCommand
FIELD field_13635 BLOCKS_TOOBIG_EXCEPTION Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
FIELD field_13636 CONDITIONAL_FAIL_EXCEPTION Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
FIELD field_13637 CONDITIONAL_FAIL_COUNT_EXCEPTION Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
FIELD field_20852 LOOT_CONDITIONS Lcom/mojang/brigadier/suggestion/SuggestionProvider;
METHOD method_13261 testBlocksCondition (Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Z)Ljava/util/OptionalInt;
ARG 0 world
ARG 1 start

View File

@ -3,6 +3,9 @@ CLASS net/minecraft/class_4799 net/minecraft/server/command/LocateBiomeCommand
FIELD field_22253 NOT_FOUND_EXCEPTION Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
METHOD method_24491 register (Lcom/mojang/brigadier/CommandDispatcher;)V
ARG 0 dispatcher
METHOD method_24493 getBiome (Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_1959;
ARG 0 context
ARG 1 argumentName
METHOD method_24495 execute (Lnet/minecraft/class_2168;Lnet/minecraft/class_1959;)I
ARG 0 source
ARG 1 biome

View File

@ -11,4 +11,8 @@ CLASS net/minecraft/class_3079 net/minecraft/server/command/LocateCommand
ARG 0 source
ARG 1 structure
METHOD method_24499 sendCoordinates (Lnet/minecraft/class_2168;Ljava/lang/String;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Ljava/lang/String;)I
ARG 0 source
ARG 1 structure
ARG 2 sourcePos
ARG 3 structurePos
ARG 4 successMessage

View File

@ -1,5 +1,6 @@
CLASS net/minecraft/class_3138 net/minecraft/server/command/SummonCommand
FIELD field_13741 FAILED_EXCEPTION Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
FIELD field_22254 INVALID_POSITION_EXCEPTION Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
METHOD method_13690 register (Lcom/mojang/brigadier/CommandDispatcher;)V
ARG 0 dispatcher
METHOD method_13694 execute (Lnet/minecraft/class_2168;Lnet/minecraft/class_2960;Lnet/minecraft/class_243;Lnet/minecraft/class_2487;Z)I

View File

@ -14,5 +14,9 @@ CLASS net/minecraft/class_3153 net/minecraft/server/command/TriggerCommand
ARG 0 source
ARG 1 suggestionsBuilder
METHOD method_13820 executeSet (Lnet/minecraft/class_2168;Lnet/minecraft/class_267;I)I
ARG 0 source
ARG 1 score
ARG 2 value
METHOD method_13821 getScore (Lnet/minecraft/class_3222;Lnet/minecraft/class_266;)Lnet/minecraft/class_267;
ARG 0 player
ARG 1 objective

View File

@ -1,7 +1,31 @@
CLASS net/minecraft/class_3359 net/minecraft/server/rcon/RconBase
FIELD field_14423 thread Ljava/lang/Thread;
FIELD field_14424 description Ljava/lang/String;
FIELD field_14425 server Lnet/minecraft/class_2994;
FIELD field_14426 sockets Ljava/util/List;
FIELD field_14428 THREAD_COUNTER Ljava/util/concurrent/atomic/AtomicInteger;
FIELD field_14429 serverSockets Ljava/util/List;
FIELD field_14430 LOGGER Lorg/apache/logging/log4j/Logger;
FIELD field_14431 running Z
METHOD <init> (Lnet/minecraft/class_2994;Ljava/lang/String;)V
ARG 1 server
ARG 2 description
METHOD method_14721 closeSocket (Ljava/net/ServerSocket;)Z
ARG 1 socket
METHOD method_14722 log (Ljava/lang/String;)V
METHOD method_14723 registerSocket (Ljava/net/DatagramSocket;)V
METHOD method_14724 getCurrentPlayerCount ()I
METHOD method_14725 forceClose (Z)V
METHOD method_14726 logError (Ljava/lang/String;)V
METHOD method_14727 warn (Ljava/lang/String;)V
METHOD method_14728 start ()V
METHOD method_14729 info (Ljava/lang/String;)V
METHOD method_14730 closeSocket (Ljava/net/ServerSocket;Z)Z
ARG 1 socket
ARG 2 remove
METHOD method_14731 isRunning ()Z
METHOD method_14732 closeSocket (Ljava/net/DatagramSocket;Z)Z
ARG 1 socket
ARG 2 remove
METHOD method_14733 forceClose ()V
METHOD method_18050 stop ()V

View File

@ -4,4 +4,7 @@ CLASS net/minecraft/class_3389 net/minecraft/server/rcon/RconClient
FIELD field_14490 packetBuffer [B
FIELD field_14491 LOGGER Lorg/apache/logging/log4j/Logger;
FIELD field_14492 password Ljava/lang/String;
METHOD <init> (Lnet/minecraft/class_2994;Ljava/lang/String;Ljava/net/Socket;)V
ARG 1 server
ARG 2 password
METHOD method_14788 close ()V

View File

@ -4,4 +4,7 @@ CLASS net/minecraft/class_3408 net/minecraft/server/rcon/RconServer
FIELD field_14512 password Ljava/lang/String;
FIELD field_14513 hostname Ljava/lang/String;
FIELD field_14514 clients Ljava/util/List;
METHOD <init> (Lnet/minecraft/class_2994;)V
ARG 1 server
METHOD method_14819 cleanClientList ()V
METHOD method_14820 removeStoppedClients ()V