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 com.mojang.serialization.Codec<ResourceLocation>
static String
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
protected String
static char
protected String
static 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_)
private 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:
- Constant Field Values
-
DEFAULT_NAMESPACE
- See Also:
- Constant Field Values
-
REALMS_NAMESPACE
- See Also:
- Constant Field Values
-
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
-