类 ResourceLocation
java.lang.Object
net.minecraft.resources.ResourceLocation
- 所有已实现的接口:
Comparable<ResourceLocation>
- 直接已知子类:
ModelResourceLocation
-
嵌套类概要
嵌套类修饰符和类型类说明protected static interface
static class
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.Codec<ResourceLocation>
static final String
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private final String
static final char
private final String
static final String
-
构造器概要
构造器限定符构造器说明ResourceLocation
(String pLocation) private
ResourceLocation
(String[] pDecomposedLocation) ResourceLocation
(String pNamespace, String pPath) protected
ResourceLocation
(String pNamespace, String pPath, ResourceLocation.Dummy pDummy) -
方法概要
修饰符和类型方法说明private static String
assertValidNamespace
(String pNamespae, String pPath) private static String
assertValidPath
(String pNamespace, String pPath) int
int
compareTo
(ResourceLocation pOther) protected static String[]
boolean
getPath()
int
hashCode()
static boolean
isAllowedInResourceLocation
(char pCharacter) static boolean
isValidNamespace
(String pNamespace) static boolean
isValidPath
(String pPath) static boolean
isValidResourceLocation
(String pLocation) static ResourceLocation
static ResourceLocation
read
(com.mojang.brigadier.StringReader pReader) static com.mojang.serialization.DataResult<ResourceLocation>
toLanguageKey
(String pType) toLanguageKey
(String pType, String pKey) toString()
static ResourceLocation
static ResourceLocation
static boolean
validNamespaceChar
(char pNamespaceChar) static boolean
validPathChar
(char pPathChar) withPath
(UnaryOperator<String> pPathOperator) withPrefix
(String pPathPrefix) withSuffix
(String pPathSuffix)
-
字段详细资料
-
构造器详细资料
-
ResourceLocation
protected ResourceLocation(String pNamespace, String pPath, @Nullable ResourceLocation.Dummy pDummy) -
ResourceLocation
-
ResourceLocation
-
ResourceLocation
-
-
方法详细资料
-
of
-
tryParse
-
tryBuild
-
decompose
-
read
-
getPath
-
getNamespace
-
withPath
-
withPath
-
withPrefix
-
withSuffix
-
toString
-
equals
-
hashCode
public int hashCode() -
compareTo
- 指定者:
compareTo
在接口中Comparable<ResourceLocation>
-
compareNamespaced
-
toDebugFileName
-
toLanguageKey
-
toShortLanguageKey
-
toLanguageKey
-
toLanguageKey
-
read
public static ResourceLocation read(com.mojang.brigadier.StringReader pReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
isAllowedInResourceLocation
public static boolean isAllowedInResourceLocation(char pCharacter) -
isValidPath
-
isValidNamespace
-
assertValidNamespace
-
validPathChar
public static boolean validPathChar(char pPathChar) -
validNamespaceChar
public static boolean validNamespaceChar(char pNamespaceChar) -
isValidResourceLocation
-
assertValidPath
-