Package net.minecraft.util
Class ResourceLocation
java.lang.Object
net.minecraft.util.ResourceLocation
- All Implemented Interfaces:
 Comparable<ResourceLocation>
- Direct Known Subclasses:
 ModelResourceLocation
- 
Nested Class Summary
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ResourceLocation>private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprotected final Stringprotected final String - 
Constructor Summary
ConstructorsModifierConstructorDescriptionResourceLocation(String p_i1293_1_) protectedResourceLocation(String[] p_i47923_1_) ResourceLocation(String p_i1292_1_, String p_i1292_2_)  - 
Method Summary
Modifier and TypeMethodDescriptionintintcompareTo(ResourceLocation p_compareTo_1_) protected static String[]booleangetPath()inthashCode()static booleanisAllowedInResourceLocation(char p_195824_0_) private static booleanisValidNamespace(String p_217858_0_) private static booleanisValidPath(String p_217856_0_) static booleanisValidResourceLocation(String p_217855_0_) static ResourceLocationstatic ResourceLocationread(com.mojang.brigadier.StringReader p_195826_0_) private static com.mojang.serialization.DataResult<ResourceLocation>toString()static ResourceLocationprivate static booleanvalidNamespaceChar(char p_240910_0_) static booleanvalidPathChar(char p_240909_0_)  
- 
Field Details
- 
CODEC
 - 
ERROR_INVALID
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVALID - 
namespace
 - 
path
 
 - 
 - 
Constructor Details
- 
ResourceLocation
 - 
ResourceLocation
 - 
ResourceLocation
 
 - 
 - 
Method Details
- 
of
 - 
tryParse
 - 
decompose
 - 
read
 - 
getPath
 - 
getNamespace
 - 
toString
 - 
equals
 - 
hashCode
public int hashCode() - 
compareTo
- Specified by:
 compareToin interfaceComparable<ResourceLocation>
 - 
compareNamespaced
 - 
read
public static ResourceLocation read(com.mojang.brigadier.StringReader p_195826_0_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 - 
isAllowedInResourceLocation
public static boolean isAllowedInResourceLocation(char p_195824_0_)  - 
isValidPath
 - 
isValidNamespace
 - 
validPathChar
public static boolean validPathChar(char p_240909_0_)  - 
validNamespaceChar
private static boolean validNamespaceChar(char p_240910_0_)  - 
isValidResourceLocation
 
 -