Package net.mcreator.workspace.elements
Class ModElementManager
java.lang.Object
net.mcreator.workspace.elements.ModElementManager
ModElementManager is not thread safe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromJSONtoGeneratableElement(String json, ModElement modElement) static ImageIcongetModElementIcon(ModElement element) voidInvalidates the generatable element cachevoidremoveModElement(ModElement element) booleanrequiresElementGradleBuild(GeneratableElement generatableElement) voidstoreModElement(GeneratableElement element) Also stores to cache.voidstoreModElementPicture(GeneratableElement element) This method should be called after the mod element is generated by Generator So potential metadata fields of ModElement are properly loaded.
-
Constructor Details
-
ModElementManager
-
-
Method Details
-
getLastElementInConversion
-
storeModElement
Also stores to cache. Is thread safe.- Parameters:
element- GeneratableElement to convert to store
-
removeModElement
-
generatableElementToJSON
-
fromJSONtoGeneratableElement
-
requiresElementGradleBuild
-
storeModElementPicture
This method should be called after the mod element is generated by Generator So potential metadata fields of ModElement are properly loaded.- Parameters:
element- GeneratableElement to generate the picture for
-
getModElementIcon
-
invalidateCache
public void invalidateCache()Invalidates the generatable element cache
-