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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ResourceLocation>
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
protected final String
protected final String
-
Constructor Summary
ModifierConstructorDescriptionResourceLocation
(String p_i1293_1_) protected
ResourceLocation
(String[] p_i47923_1_) ResourceLocation
(String p_i1292_1_, String p_i1292_2_) -
Method Summary
Modifier and TypeMethodDescriptionint
int
compareTo
(ResourceLocation p_compareTo_1_) protected static String[]
boolean
getPath()
int
hashCode()
static boolean
isAllowedInResourceLocation
(char p_195824_0_) private static boolean
isValidNamespace
(String p_217858_0_) private static boolean
isValidPath
(String p_217856_0_) static boolean
isValidResourceLocation
(String p_217855_0_) static ResourceLocation
static ResourceLocation
read
(com.mojang.brigadier.StringReader p_195826_0_) private static com.mojang.serialization.DataResult<ResourceLocation>
toString()
static ResourceLocation
private static boolean
validNamespaceChar
(char p_240910_0_) static boolean
validPathChar
(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:
compareTo
in 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
-