From 7999d9c8367c2380dc4b6c7c81ded4e937ca16a5 Mon Sep 17 00:00:00 2001 From: Fudge Date: Fri, 17 Jan 2020 21:48:17 +0200 Subject: [PATCH] Fix up Identifier (#1059) * Identifier#(2)[1 = ] -> namespace * Identifier#(2)[2 = ] -> path * Identifier#(1)[1 = ] -> id * +360 doc in Identifier#(1)[1 = id] * +119 doc in net/minecraft/util/Identifier * Update Identifier.mapping * Update mappings/net/minecraft/util/Identifier.mapping Co-Authored-By: Pyrofab * Update mappings/net/minecraft/util/Identifier.mapping Co-authored-by: Pyrofab --- mappings/net/minecraft/util/Identifier.mapping | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mappings/net/minecraft/util/Identifier.mapping b/mappings/net/minecraft/util/Identifier.mapping index 8e1c664c55..138fe5204e 100644 --- a/mappings/net/minecraft/util/Identifier.mapping +++ b/mappings/net/minecraft/util/Identifier.mapping @@ -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 (Ljava/lang/String;Ljava/lang/String;)V + ARG 1 namespace + ARG 2 path + METHOD (Ljava/lang/String;)V + ARG 1 id + COMMENT A string of the form :, 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