Package net.mcreator.workspace.elements
Class ModElementManager
java.lang.Object
net.mcreator.workspace.elements.ModElementManager
ModElementManager is not thread safe
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromJSONtoGeneratableElement
(String json, ModElement modElement) static ImageIcon
getModElementIcon
(ModElement element) void
Invalidates the generatable element cachevoid
removeModElement
(ModElement element) boolean
requiresElementGradleBuild
(GeneratableElement generatableElement) void
storeModElement
(GeneratableElement element) Also stores to cache.void
storeModElementPicture
(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
-