net.minecraft.resources

public final class ResourceLocation

implements Comparable<ResourceLocation>

akr
net.minecraft.resources.ResourceLocation
net.minecraft.class_2960
net.minecraft.unmapped.C_ncpywfca
net.minecraft.util.Identifier
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
f_sipmgjff
CODEC
CODEC
f_135803_
public static final StreamCodec<io.netty.buffer.ByteBuf, ResourceLocation>
b
STREAM_CODEC
field_48267
f_sbbaqjle
PACKET_CODEC
PACKET_CODEC
f_314488_
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
c
ERROR_INVALID
field_13354
f_vyokdaeu
COMMAND_EXCEPTION
COMMAND_EXCEPTION
f_135806_
public static final char
d
NAMESPACE_SEPARATOR
field_33380
f_oqzsfwne
NAMESPACE_SEPARATOR
NAMESPACE_SEPARATOR
f_179907_
public static final String
e
DEFAULT_NAMESPACE
field_33381
f_pupxcoog
DEFAULT_NAMESPACE
DEFAULT_NAMESPACE
f_179908_
public static final String
f
REALMS_NAMESPACE
field_33382
f_yljrpbez
REALMS_NAMESPACE
REALMS_NAMESPACE
f_179909_
private final String
h
namespace
field_13353
f_xnfsgrjc
namespace
namespace
f_135804_
private final String
i
path
field_13355
f_mkdmoqvz
path
path
f_135805_

Constructor summary

ModifierConstructor
private (String namespace, String path)

Method summary

Modifier and TypeMethod
private static ResourceLocation
d(String arg0, String arg1)
createUntrusted(String arg0, String arg1)
method_60936(String arg0, String arg1)
m_ruyuqpbm(String arg0, String arg1)
ofValidated(String namespace, String path)
ofValidated(String namespace, String path)
m_339033_(String p_344238_, String p_343734_)
public static ResourceLocation
a(String arg0, String arg1)
fromNamespaceAndPath(String arg0, String arg1)
method_60655(String arg0, String arg1)
m_egmlfvuu(String arg0, String arg1)
of(String namespace, String path)
of(String namespace, String path)
m_339182_(String p_344609_, String p_343842_)
public static ResourceLocation
a(String arg0)
parse(String arg0)
method_60654(String arg0)
m_qfesvyds(String arg0)
of(String id)
parse(String id)
m_338530_(String p_342815_)
public static ResourceLocation
b(String arg0)
withDefaultNamespace(String arg0)
method_60656(String arg0)
m_anmnhtwf(String arg0)
ofVanilla(String path)
ofDefault(String path)
m_340282_(String p_343785_)
public static ResourceLocation
c(String arg0)
tryParse(String arg0)
method_12829(String arg0)
m_wxhslhfx(String arg0)
tryParse(String id)
tryParse(String id)
m_135820_(String p_135821_)
public static ResourceLocation
b(String arg0, String arg1)
tryBuild(String arg0, String arg1)
method_43902(String arg0, String arg1)
m_zcrfpfxe(String arg0, String arg1)
tryParse(String namespace, String path)
tryValidate(String namespace, String path)
m_214293_(String p_214294_, String p_214295_)
public static ResourceLocation
a(String arg0, char arg1)
bySeparator(String arg0, char arg1)
method_12838(String arg0, char arg1)
m_nofgkkgq(String arg0, char arg1)
splitOn(String id, char delimiter)
parse(String id, char delimiter)
m_339830_(String p_342228_, char p_344234_)
public static ResourceLocation
b(String arg0, char arg1)
tryBySeparator(String arg0, char arg1)
method_60935(String arg0, char arg1)
m_kuwopdmn(String arg0, char arg1)
trySplitOn(String id, char delimiter)
tryParse(String id, char delimiter)
m_338964_(String p_344079_, char p_344067_)
public static com.mojang.serialization.DataResult<ResourceLocation>
d(String arg0)
read(String arg0)
method_29186(String arg0)
m_vaxsptoa(String arg0)
validate(String id)
validate(String id)
m_135837_(String p_135838_)
public String
a()
getPath()
method_12832()
m_yyrvqafp()
getPath()
getPath()
m_135815_()
public String
b()
getNamespace()
method_12836()
m_objfgggc()
getNamespace()
getNamespace()
m_135827_()
public ResourceLocation
e(String arg0)
withPath(String arg0)
method_45136(String arg0)
m_mtmyhkca(String arg0)
withPath(String path)
withPath(String path)
m_247449_(String arg0)
public ResourceLocation
a(UnaryOperator<String> arg0)
withPath(UnaryOperator<String> arg0)
method_45134(UnaryOperator<String> arg0)
m_yzofquyk(UnaryOperator<String> arg0)
withPath(UnaryOperator<String> pathFunction)
withPath(UnaryOperator<String> pathOp)
m_247266_(UnaryOperator<String> arg0)
public ResourceLocation
f(String arg0)
withPrefix(String arg0)
method_45138(String arg0)
m_busiuktr(String arg0)
withPrefixedPath(String prefix)
withPrefix(String prefix)
m_246208_(String arg0)
public ResourceLocation
g(String arg0)
withSuffix(String arg0)
method_48331(String arg0)
m_cnnbwbsu(String arg0)
withSuffixedPath(String suffix)
extendPath(String path)
m_266382_(String arg0)
public int
a(akr arg0)
compareTo(ResourceLocation arg0)
method_12833(class_2960 arg0)
m_rfjojzrf(C_ncpywfca arg0)
compareTo(Identifier arg0)
compareTo(Identifier arg0)
compareTo(C_5265_ arg0)
public String
c()
toDebugFileName()
method_36181()
m_warlfrkf()
toUnderscoreSeparatedString()
toUnderscoreSeparatedString()
m_179910_()
public String
d()
toLanguageKey()
method_42094()
m_wutvcxlb()
toTranslationKey()
toTranslationKey()
m_214298_()
public String
e()
toShortLanguageKey()
method_43903()
m_gnhdfxba()
toShortTranslationKey()
toShortTranslationKey()
m_214299_()
public String
h(String arg0)
toLanguageKey(String arg0)
method_42093(String arg0)
m_uptbalai(String arg0)
toTranslationKey(String prefix)
toTranslationKey(String prefix)
m_214296_(String arg0)
public String
c(String arg0, String arg1)
toLanguageKey(String arg0, String arg1)
method_48747(String arg0, String arg1)
m_nhedqonr(String arg0, String arg1)
toTranslationKey(String prefix, String suffix)
toTranslationKey(String prefix, String suffix)
m_269108_(String p_270199_, String arg1)
private static String
c(com.mojang.brigadier.StringReader arg0)
readGreedy(com.mojang.brigadier.StringReader arg0)
method_58275(com.mojang.brigadier.StringReader arg0)
m_qrnvqzhd(com.mojang.brigadier.StringReader arg0)
readString(com.mojang.brigadier.StringReader reader)
readToCursor(com.mojang.brigadier.StringReader reader)
m_324283_(com.mojang.brigadier.StringReader p_330450_)
public static ResourceLocation
a(com.mojang.brigadier.StringReader arg0)
read(com.mojang.brigadier.StringReader arg0)
method_12835(com.mojang.brigadier.StringReader arg0)
m_kwahahgw(com.mojang.brigadier.StringReader arg0)
fromCommandInput(com.mojang.brigadier.StringReader reader)
fromCommandInput(com.mojang.brigadier.StringReader reader)
m_135818_(com.mojang.brigadier.StringReader p_135819_)
public static ResourceLocation
b(com.mojang.brigadier.StringReader arg0)
readNonEmpty(com.mojang.brigadier.StringReader arg0)
method_58274(com.mojang.brigadier.StringReader arg0)
m_icvwyhda(com.mojang.brigadier.StringReader arg0)
fromCommandInputNonEmpty(com.mojang.brigadier.StringReader reader)
fromCommandInputNonEmpty(com.mojang.brigadier.StringReader reader)
m_320588_(com.mojang.brigadier.StringReader p_330926_)
public static boolean
a(char arg0)
isAllowedInResourceLocation(char arg0)
method_12831(char arg0)
m_jncqetor(char arg0)
isCharValid(char c)
isCharValid(char c)
m_135816_(char p_135817_)
public static boolean
i(String arg0)
isValidPath(String arg0)
method_20208(String arg0)
m_hokecmdu(String arg0)
isPathValid(String path)
isPathValid(String path)
m_135841_(String p_135842_)
public static boolean
j(String arg0)
isValidNamespace(String arg0)
method_20209(String arg0)
m_mtmkuzyt(String arg0)
isNamespaceValid(String namespace)
isNamespaceValid(String namespace)
m_135843_(String p_135844_)
private static String
e(String arg0, String arg1)
assertValidNamespace(String arg0, String arg1)
method_45135(String arg0, String arg1)
m_ymfwdjmq(String arg0, String arg1)
validateNamespace(String namespace, String path)
validateNamespace(String namespace, String path)
m_245413_(String p_250769_, String p_249616_)
public static boolean
b(char arg0)
validPathChar(char arg0)
method_29184(char arg0)
m_bkdtomxa(char arg0)
isPathCharacterValid(char character)
isPathCharacterValid(char character)
m_135828_(char p_135829_)
private static boolean
c(char arg0)
validNamespaceChar(char arg0)
method_29185(char arg0)
m_hwomsdhy(char arg0)
isNamespaceCharacterValid(char character)
isNamespaceCharacterValid(char character)
m_135835_(char p_135836_)
private static String
f(String arg0, String arg1)
assertValidPath(String arg0, String arg1)
method_45137(String arg0, String arg1)
m_lxrliuax(String arg0, String arg1)
validatePath(String namespace, String path)
validatePath(String namespace, String path)
m_245185_(String p_251418_, String p_248828_)