public class IdentifierUtil
extends java.lang.Object
| Constructor and Description |
|---|
IdentifierUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isValidIdentifier(java.lang.String identifier)
Checks whether given identifier contains illegal characters
|
static boolean |
isValidIdentifier(java.lang.String namespace,
java.lang.String path)
Checks whether given identifier contains illegal characters
|
static boolean |
isValidNamespace(java.lang.String namespace)
Checks whether the given namespace contains illegal characters
|
static boolean |
isValidPath(java.lang.String path)
Checks whether the given path contains illegal characters
|
static net.minecraft.util.ResourceLocation |
withFusionNamespace(java.lang.String identifier)
Converts the given string into a
ResourceLocation instance. |
public static boolean isValidNamespace(java.lang.String namespace)
namespace - namespace to be checkedtrue if the namespace is validpublic static boolean isValidPath(java.lang.String path)
path - identifier path to be checkedtrue if the path is validpublic static boolean isValidIdentifier(java.lang.String namespace,
java.lang.String path)
namespace - identifier namespace to be checkedpath - identifier path to be checkedtrue if the identifier is validpublic static boolean isValidIdentifier(java.lang.String identifier)
identifier - identifier to be checkedtrue if the identifier is validpublic static net.minecraft.util.ResourceLocation withFusionNamespace(java.lang.String identifier)
ResourceLocation instance. If no namespace is specified, the 'fusion' namespace will be used