Package net.mcreator.generator.mapping
Class NonMappableElement
java.lang.Object
net.mcreator.generator.mapping.MappableElement
net.mcreator.generator.mapping.NonMappableElement
- All Implemented Interfaces:
IWorkspaceDependent
In some cases, one may need to pass a string where a MappableElement is expected. This class is used for such cases.
-
Field Summary
Fields inherited from class net.mcreator.generator.mapping.MappableElement
mapper
-
Constructor Summary
-
Method Summary
Methods inherited from class net.mcreator.generator.mapping.MappableElement
equals, getDataListEntryType, getMappedValue, getUnmappedValue, hashCode, isEmpty, isManaged, setManaged, toString, validateReference
-
Constructor Details
-
NonMappableElement
-
-
Method Details
-
getMappedValue
- Overrides:
getMappedValue
in classMappableElement
-
isValidReference
public boolean isValidReference()- Overrides:
isValidReference
in classMappableElement
- Returns:
- true if the value exists in the workspace. Always returns true for vanilla elements, even if they are not supported in the selected Minecraft version. Returns false if the element is empty.
-
getDataListEntry
- Overrides:
getDataListEntry
in classMappableElement
-
setWorkspace
- Specified by:
setWorkspace
in interfaceIWorkspaceDependent
- Overrides:
setWorkspace
in classMappableElement
-
getWorkspace
- Specified by:
getWorkspace
in interfaceIWorkspaceDependent
- Overrides:
getWorkspace
in classMappableElement
-