net.minecraft.resources

public class ResourceLocation

implements Comparable<ResourceLocation>

ww
net.minecraft.resources.ResourceLocation
net.minecraft.class_2960
net.minecraft.util.Identifier
net.minecraft.src.C_5265_
net.minecraft.resources.MinecraftKey

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<ResourceLocation>
a
CODEC
field_25139
CODEC
f_135803_
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
g
ERROR_INVALID
field_13354
COMMAND_EXCEPTION
f_135806_
public static final char
b
NAMESPACE_SEPARATOR
field_33380
NAMESPACE_SEPARATOR
f_179907_
public static final String
c
DEFAULT_NAMESPACE
field_33381
DEFAULT_NAMESPACE
f_179908_
public static final String
d
REALMS_NAMESPACE
field_33382
REALMS_NAMESPACE
f_179909_
protected final String
e
namespace
field_13353
namespace
f_135804_
protected final String
f
path
field_13355
path
f_135805_

Constructor summary

ModifierConstructor
protected (String[] id)
public (String id)
public (String namespace, String path)

Method summary

Modifier and TypeMethod
public static ResourceLocation
a(String arg0, char arg1)
of(String arg0, char arg1)
method_12838(String arg0, char arg1)
splitOn(String id, char delimiter)
m_135822_(String p_135823_, char p_135824_)
public static ResourceLocation
a(String arg0)
tryParse(String arg0)
method_12829(String arg0)
tryParse(String id)
m_135820_(String p_135821_)
protected static String[]
b(String arg0, char arg1)
decompose(String arg0, char arg1)
method_12830(String arg0, char arg1)
split(String id, char delimiter)
m_135832_(String p_135833_, char p_135834_)
private static com.mojang.serialization.DataResult<ResourceLocation>
c(String arg0)
read(String arg0)
method_29186(String arg0)
validate(String id)
m_135837_(String p_135838_)
public String
a()
getPath()
method_12832()
getPath()
m_135815_()
getKey()
public String
b()
getNamespace()
method_12836()
getNamespace()
m_135827_()
getNamespace()
public int
a(ww arg0)
compareTo(ResourceLocation arg0)
method_12833(class_2960 arg0)
compareTo(Identifier arg0)
compareTo(C_5265_ arg0)
public String
c()
toDebugFileName()
method_36181()
toUnderscoreSeparatedString()
m_179910_()
public static ResourceLocation
a(com.mojang.brigadier.StringReader arg0)
read(com.mojang.brigadier.StringReader arg0)
method_12835(com.mojang.brigadier.StringReader arg0)
fromCommandInput(com.mojang.brigadier.StringReader reader)
m_135818_(com.mojang.brigadier.StringReader p_135819_)
public static boolean
a(char arg0)
isAllowedInResourceLocation(char arg0)
method_12831(char arg0)
isCharValid(char c)
m_135816_(char p_135817_)
private static boolean
d(String arg0)
isValidPath(String arg0)
method_20208(String arg0)
isPathValid(String path)
m_135841_(String p_135842_)
private static boolean
e(String arg0)
isValidNamespace(String arg0)
method_20209(String arg0)
isNamespaceValid(String namespace)
m_135843_(String p_135844_)
public static boolean
b(char arg0)
validPathChar(char arg0)
method_29184(char arg0)
isPathCharacterValid(char character)
m_135828_(char p_135829_)
private static boolean
c(char arg0)
validNamespaceChar(char arg0)
method_29185(char arg0)
isNamespaceCharacterValid(char character)
m_135835_(char p_135836_)
public static boolean
b(String arg0)
isValidResourceLocation(String arg0)
method_20207(String arg0)
isValid(String id)
m_135830_(String p_135831_)