Class GuiImageSource
java.lang.Object
com.render.api.gui.GuiImageSource
Describes a raster image that can be loaded from a URL or a jar resource.
-
Method Summary
Modifier and TypeMethodDescriptioncacheKey()default longfloatfloatcom.render.api.gui.GuiLoadedAssetload()static GuiImageSourceresource(net.minecraft.resources.Identifier resourceId) Creates an image source backed by a resource inside the jar or active resource packs.static GuiImageSourceCreates an image source backed by a URL.
-
Method Details
-
resource
Creates an image source backed by a resource inside the jar or active resource packs.- Parameters:
resourceId- resource identifier such asmodid:textures/gui/panel.png- Returns:
- image source
-
url
Creates an image source backed by a URL.- Parameters:
url- image URL- Returns:
- image source
-
cacheKey
-
hintWidth
public float hintWidth() -
hintHeight
public float hintHeight() -
load
-
generation
default long generation()
-