Package net.mcreator.ui.init
Class UIRES
java.lang.Object
net.mcreator.ui.init.UIRES
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageIcon
Gets an image from the current theme or the default theme if the image is not found.static ImageIcon
getBuiltIn
(String identifier) Returns a built-in image from the MCreator UI resources.static void
-
Constructor Details
-
UIRES
public UIRES()
-
-
Method Details
-
preloadImages
public static void preloadImages() -
get
Gets an image from the current theme or the default theme if the image is not found. Image loading priority (top down, first match found):- Current theme SVG
- Current theme PNG
- Default theme SVG
- Default theme PNG
- Throws NullPointerException
- Parameters:
identifier
- the identifier of the image- Returns:
- the image icon
-
getBuiltIn
Returns a built-in image from the MCreator UI resources. Only works for raster images. UseUIRES.SVG
for vector images.- Parameters:
identifier
- the identifier of the image- Returns:
- the image icon
-