net.minecraft.resources

public final class ResourceLocation

implements Comparable<ResourceLocation>

akv
net.minecraft.resources.ResourceLocation
net.minecraft.class_2960
net.minecraft.util.Identifier
net.minecraft.resources.MinecraftKey

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<ResourceLocation>
a
CODEC
field_25139
CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf, ResourceLocation>
b
STREAM_CODEC
field_48267
PACKET_CODEC
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
c
ERROR_INVALID
field_13354
COMMAND_EXCEPTION
public static final char
d
NAMESPACE_SEPARATOR
field_33380
NAMESPACE_SEPARATOR
public static final String
e
DEFAULT_NAMESPACE
field_33381
DEFAULT_NAMESPACE
public static final String
f
REALMS_NAMESPACE
field_33382
REALMS_NAMESPACE
private final String
h
namespace
field_13353
namespace
private final String
i
path
field_13355
path

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)
ofValidated(String namespace, String path)
public static ResourceLocation
a(String arg0, String arg1)
fromNamespaceAndPath(String arg0, String arg1)
method_60655(String arg0, String arg1)
of(String namespace, String path)
public static ResourceLocation
a(String arg0)
parse(String arg0)
method_60654(String arg0)
of(String id)
public static ResourceLocation
b(String arg0)
withDefaultNamespace(String arg0)
method_60656(String arg0)
ofVanilla(String path)
public static ResourceLocation
c(String arg0)
tryParse(String arg0)
method_12829(String arg0)
tryParse(String id)
public static ResourceLocation
b(String arg0, String arg1)
tryBuild(String arg0, String arg1)
method_43902(String arg0, String arg1)
tryParse(String namespace, String path)
public static ResourceLocation
a(String arg0, char arg1)
bySeparator(String arg0, char arg1)
method_12838(String arg0, char arg1)
splitOn(String id, char delimiter)
public static ResourceLocation
b(String arg0, char arg1)
tryBySeparator(String arg0, char arg1)
method_60935(String arg0, char arg1)
trySplitOn(String id, char delimiter)
public static com.mojang.serialization.DataResult<ResourceLocation>
d(String arg0)
read(String arg0)
method_29186(String arg0)
validate(String id)
public String
a()
getPath()
method_12832()
getPath()
public String
b()
getNamespace()
method_12836()
getNamespace()
public ResourceLocation
e(String arg0)
withPath(String arg0)
method_45136(String arg0)
withPath(String path)
public ResourceLocation
a(UnaryOperator<String> arg0)
withPath(UnaryOperator<String> arg0)
method_45134(UnaryOperator<String> arg0)
withPath(UnaryOperator<String> pathFunction)
public ResourceLocation
f(String arg0)
withPrefix(String arg0)
method_45138(String arg0)
withPrefixedPath(String prefix)
public ResourceLocation
g(String arg0)
withSuffix(String arg0)
method_48331(String arg0)
withSuffixedPath(String suffix)
public int
a(akv arg0)
compareTo(ResourceLocation arg0)
method_12833(class_2960 arg0)
compareTo(Identifier arg0)
public String
c()
toDebugFileName()
method_36181()
toUnderscoreSeparatedString()
public String
d()
toLanguageKey()
method_42094()
toTranslationKey()
public String
e()
toShortLanguageKey()
method_43903()
toShortTranslationKey()
public String
h(String arg0)
toLanguageKey(String arg0)
method_42093(String arg0)
toTranslationKey(String prefix)
public String
c(String arg0, String arg1)
toLanguageKey(String arg0, String arg1)
method_48747(String arg0, String arg1)
toTranslationKey(String prefix, String suffix)
private static String
c(com.mojang.brigadier.StringReader arg0)
readGreedy(com.mojang.brigadier.StringReader arg0)
method_58275(com.mojang.brigadier.StringReader arg0)
readString(com.mojang.brigadier.StringReader reader)
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)
public static ResourceLocation
b(com.mojang.brigadier.StringReader arg0)
readNonEmpty(com.mojang.brigadier.StringReader arg0)
method_58274(com.mojang.brigadier.StringReader arg0)
fromCommandInputNonEmpty(com.mojang.brigadier.StringReader reader)
public static boolean
a(char arg0)
isAllowedInResourceLocation(char arg0)
method_12831(char arg0)
isCharValid(char c)
public static boolean
i(String arg0)
isValidPath(String arg0)
method_20208(String arg0)
isPathValid(String path)
public static boolean
j(String arg0)
isValidNamespace(String arg0)
method_20209(String arg0)
isNamespaceValid(String namespace)
private static String
e(String arg0, String arg1)
assertValidNamespace(String arg0, String arg1)
method_45135(String arg0, String arg1)
validateNamespace(String namespace, String path)
public static boolean
b(char arg0)
validPathChar(char arg0)
method_29184(char arg0)
isPathCharacterValid(char character)
private static boolean
c(char arg0)
validNamespaceChar(char arg0)
method_29185(char arg0)
isNamespaceCharacterValid(char character)
private static String
f(String arg0, String arg1)
assertValidPath(String arg0, String arg1)
method_45137(String arg0, String arg1)
validatePath(String namespace, String path)