Package net.minecraft.resources
Class ResourceLocation
java.lang.Object
net.minecraft.resources.ResourceLocation
- All Implemented Interfaces:
- Comparable<ResourceLocation>
- Direct Known Subclasses:
- ModelResourceLocation
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static interfacestatic class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ResourceLocation>static final Stringprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate final Stringstatic final charprivate final Stringstatic final String
- 
Constructor SummaryConstructorsModifierConstructorDescriptionResourceLocation(String p_135809_) privateResourceLocation(String[] p_135814_) ResourceLocation(String p_135811_, String p_135812_) protectedResourceLocation(String p_248791_, String p_249394_, ResourceLocation.Dummy p_249089_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate static StringassertValidNamespace(String p_250769_, String p_249616_) private static StringassertValidPath(String p_251418_, String p_248828_) intintcompareTo(ResourceLocation p_135826_) protected static String[]booleangetPath()inthashCode()static booleanisAllowedInResourceLocation(char p_135817_) static booleanisValidNamespace(String p_135844_) static booleanisValidPath(String p_135842_) static booleanisValidResourceLocation(String p_135831_) static ResourceLocationstatic ResourceLocationread(com.mojang.brigadier.StringReader p_135819_) static com.mojang.serialization.DataResult<ResourceLocation>toLanguageKey(String p_214297_) toLanguageKey(String p_270871_, String p_270199_) toString()static ResourceLocationstatic ResourceLocationstatic booleanvalidNamespaceChar(char p_135836_) static booleanvalidPathChar(char p_135829_) withPath(UnaryOperator<String> p_250342_) withPrefix(String p_250620_) withSuffix(String p_266769_) 
- 
Field Details- 
CODEC
- 
ERROR_INVALIDprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVALID
- 
NAMESPACE_SEPARATORpublic static final char NAMESPACE_SEPARATOR- See Also:
 
- 
DEFAULT_NAMESPACE- See Also:
 
- 
REALMS_NAMESPACE- See Also:
 
- 
namespace
- 
path
 
- 
- 
Constructor Details- 
ResourceLocationprotected ResourceLocation(String p_248791_, String p_249394_, @Nullable ResourceLocation.Dummy p_249089_) 
- 
ResourceLocation
- 
ResourceLocation
- 
ResourceLocation
 
- 
- 
Method Details- 
of
- 
tryParse
- 
tryBuild
- 
decompose
- 
read
- 
getPath
- 
getNamespace
- 
withPath
- 
withPath
- 
withPrefix
- 
withSuffix
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
- 
compareTo- Specified by:
- compareToin interface- Comparable<ResourceLocation>
 
- 
compareNamespaced
- 
toDebugFileName
- 
toLanguageKey
- 
toShortLanguageKey
- 
toLanguageKey
- 
toLanguageKey
- 
readpublic static ResourceLocation read(com.mojang.brigadier.StringReader p_135819_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
isAllowedInResourceLocationpublic static boolean isAllowedInResourceLocation(char p_135817_) 
- 
isValidPath
- 
isValidNamespace
- 
assertValidNamespace
- 
validPathCharpublic static boolean validPathChar(char p_135829_) 
- 
validNamespaceCharpublic static boolean validNamespaceChar(char p_135836_) 
- 
isValidResourceLocation
- 
assertValidPath
 
-