Clean up javadoc on Identifier(String) constructor (#1723)

* Clean up javadoc on Identifier(String) constructor

This was done without Enigma! Since this is, quite literally, changing 2 COMMENT lines.

* Transfer comments to method rather than parameter

* Add @.throws, add javadoc for tryParse

* redundancy bad
This commit is contained in:
Kfir Awad 2020-08-27 11:20:47 +03:00 committed by GitHub
parent 343a7cb5ad
commit 67ef486530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -5,16 +5,20 @@ CLASS net/minecraft/class_2960 net/minecraft/util/Identifier
FIELD field_13355 path Ljava/lang/String;
FIELD field_25139 CODEC Lcom/mojang/serialization/Codec;
METHOD <init> (Ljava/lang/String;)V
COMMENT <p>Takes a string of the form {@code <namespace>:<path>}, for example {@code minecraft:iron_ingot}.</p>
COMMENT <p>The string will be split (on the {@code :}) into an identifier with the specified path and namespace.</p>
COMMENT Prefer using the {@link #Identifier(java.lang.String, java.lang.String)} constructor that takes the namespace and path as individual parameters to avoid mistakes.
COMMENT @throws InvalidIdentifierException if the string cannot be parsed as an identifier.
ARG 1 id
COMMENT A string of the form <namespace>:<path>, for example minecraft:iron_ingot.
COMMENT The string will be split (on the :) into an identifier with the specified path and namespace.
COMMENT Prefer using the constructor {@link net.minecraft.util.Identifier#Identifier(java.lang.String, java.lang.String)} that takes the namespace and path as individual parameters to avoid mistakes.
METHOD <init> (Ljava/lang/String;Ljava/lang/String;)V
ARG 1 namespace
ARG 2 path
METHOD <init> ([Ljava/lang/String;)V
ARG 1 id
METHOD method_12829 tryParse (Ljava/lang/String;)Lnet/minecraft/class_2960;
COMMENT <p>Parses a string into an {@code Identifier}.</p>
COMMENT Takes a string of the form {@code <namespace>:<path>}, for example {@code minecraft:iron_ingot}.
COMMENT @return resulting identifier, or {@code null} if the string couldn't be parsed as an identifier
ARG 0 id
METHOD method_12830 split (Ljava/lang/String;C)[Ljava/lang/String;
ARG 0 id