Fix up Identifier (#1059)

* Identifier#<init>(2)[1 = ] -> namespace

* Identifier#<init>(2)[2 = ] -> path

* Identifier#<init>(1)[1 = ] -> id

* +360 doc in Identifier#<init>(1)[1 = id]

* +119 doc in net/minecraft/util/Identifier

* Update Identifier.mapping

* Update mappings/net/minecraft/util/Identifier.mapping

Co-Authored-By: Pyrofab <redstoneinfire@gmail.com>

* Update mappings/net/minecraft/util/Identifier.mapping

Co-authored-by: Pyrofab <redstoneinfire@gmail.com>
This commit is contained in:
Fudge 2020-01-17 21:48:17 +02:00 committed by modmuss50
parent f233f5a380
commit 7999d9c836
1 changed files with 9 additions and 0 deletions

View File

@ -1,4 +1,5 @@
CLASS net/minecraft/class_2960 net/minecraft/util/Identifier
COMMENT The namespace and path must contain only lowercase letters ([a-z]), digits ([0-9]), or the characters '_', '.', and '-'. The path can also contain the standard path separator '/'.
FIELD field_13353 namespace Ljava/lang/String;
FIELD field_13354 COMMAND_EXCEPTION Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
FIELD field_13355 path Ljava/lang/String;
@ -28,4 +29,12 @@ CLASS net/minecraft/class_2960 net/minecraft/util/Identifier
ARG 0 path
METHOD method_20209 isNamespaceValid (Ljava/lang/String;)Z
ARG 0 namespace
METHOD <init> (Ljava/lang/String;Ljava/lang/String;)V
ARG 1 namespace
ARG 2 path
METHOD <init> (Ljava/lang/String;)V
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.
CLASS class_2961 Serializer