Class NameMapper
java.lang.Object
net.mcreator.generator.mapping.NameMapper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMapping(String origName) getMapping(String origName, int mappingTable) static StringresolveModNamespace(String resourceLocation, String modID) Replaces the "mod:" namespace alias at the start of the given resource location with the actual mod ID.static StringresolveModNamespace(String resourceLocation, Workspace workspace) voidsetWorkspace(Workspace workspace)
-
Field Details
-
UNKNOWN_ELEMENT
- See Also:
-
MCREATOR_PREFIX
- See Also:
-
EXTERNAL_PREFIX
- See Also:
-
MOD_NAMESPACE_PREFIX
- See Also:
-
-
Constructor Details
-
NameMapper
-
-
Method Details
-
setWorkspace
-
getWorkspace
-
getMappingSource
-
resolveModNamespace
Replaces the "mod:" namespace alias at the start of the given resource location with the actual mod ID. Values not starting with the alias are returned unchanged.- Parameters:
resourceLocation- Resource location that may use the "mod:" namespace aliasmodID- Mod ID to replace the alias with- Returns:
- Resource location with the actual mod ID as the namespace
-
resolveModNamespace
-
getMapping
-
getMapping
-