Package net.minecraft.resources
Class ResourceLocation
java.lang.Object
net.minecraft.resources.ResourceLocation
- All Implemented Interfaces:
Comparable<ResourceLocation>
- Direct Known Subclasses:
ModelResourceLocation
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ResourceLocation>
static final String
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
protected final String
static final char
protected final String
static final String
-
Constructor Summary
ModifierConstructorDescriptionResourceLocation
(String p_135809_) protected
ResourceLocation
(String[] p_135814_) ResourceLocation
(String p_135811_, String p_135812_) -
Method Summary
Modifier and TypeMethodDescriptionint
int
compareTo
(ResourceLocation p_135826_) protected static String[]
boolean
getPath()
int
hashCode()
static boolean
isAllowedInResourceLocation
(char p_135817_) private static boolean
isValidNamespace
(String p_135844_) private static boolean
isValidPath
(String p_135842_) static boolean
isValidResourceLocation
(String p_135831_) static ResourceLocation
static ResourceLocation
read
(com.mojang.brigadier.StringReader p_135819_) static com.mojang.serialization.DataResult<ResourceLocation>
toString()
static ResourceLocation
private static boolean
validNamespaceChar
(char p_135836_) static boolean
validPathChar
(char p_135829_)
-
Field Details
-
CODEC
-
ERROR_INVALID
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INVALID -
NAMESPACE_SEPARATOR
public static final char NAMESPACE_SEPARATOR- See Also:
-
DEFAULT_NAMESPACE
- See Also:
-
REALMS_NAMESPACE
- See Also:
-
namespace
-
path
-
-
Constructor Details
-
ResourceLocation
-
ResourceLocation
-
ResourceLocation
-
-
Method Details
-
of
-
tryParse
-
decompose
-
read
-
getPath
-
getNamespace
-
toString
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<ResourceLocation>
-
compareNamespaced
-
toDebugFileName
-
read
public static ResourceLocation read(com.mojang.brigadier.StringReader p_135819_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
isAllowedInResourceLocation
public static boolean isAllowedInResourceLocation(char p_135817_) -
isValidPath
-
isValidNamespace
-
validPathChar
public static boolean validPathChar(char p_135829_) -
validNamespaceChar
private static boolean validNamespaceChar(char p_135836_) -
isValidResourceLocation
-