Class FoliosIcon
java.lang.Object
net.ixdarklord.folios.api.client.page.FoliosIcon
A book's, category's or entry's 16-pixel icon: items (
FoliosStack, e.g. "minecraft:compass"), or a
texture, named by its path ("mymod:textures/gui/guide/compass.png" or {"texture": "..."}).-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(FoliosPainter painter, int x, int y) Draws it on a page, 16 pixels square at (x, y).voiddraw(GuiGraphicsExtractor graphics, int x, int y, int size, float seconds) Draws it on a screen,sizepixels square at (x, y), with no tooltip.booleanisEmpty()static FoliosIconof(FoliosStack stack) static FoliosIconread(@Nullable com.google.gson.JsonElement json) Reads an icon from JSON;NONEfor null.@Nullable FoliosStackstack()@Nullable net.minecraft.resources.ResourceLocationtexture()static FoliosIcontexture(net.minecraft.resources.ResourceLocation texture)
-
Field Details
-
NONE
-
-
Method Details
-
of
-
texture
-
read
Reads an icon from JSON;NONEfor null. -
isEmpty
public boolean isEmpty() -
stack
-
texture
@Nullable public @Nullable net.minecraft.resources.ResourceLocation texture() -
draw
Draws it on a page, 16 pixels square at (x, y). -
draw
Draws it on a screen,sizepixels square at (x, y), with no tooltip.
-