Interface ClientResearchIcon<I extends ResearchIcon>
- Type Parameters:
I- The original Research Icon
- All Known Implementing Classes:
ClientItemResearchIcon,ClientSpriteResearchIcon,ClientTextResearchIcon
public interface ClientResearchIcon<I extends ResearchIcon>
Client-side version of
ResearchIcon used for rendering the icon.
Stores the Research Icon itself as well.
Get instantiated for each Research.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <I extends ResearchIcon>
ClientResearchIcon<I> getClientIcon(ResearchIcon icon) icon()voidrender(net.minecraft.client.gui.GuiGraphics guiGraphics, int panelLeft, int panelTop, int mouseX, int mouseY, float scale, float partialTicks) Render the icondefault voidrender(net.minecraft.client.gui.GuiGraphics guiGraphics, int panelLeft, int panelTop, int mouseX, int mouseY, float scale, int width, int height, float partialTicks)
-
Method Details
-
icon
I icon()- Returns:
- The original Research Icon
-
render
void render(net.minecraft.client.gui.GuiGraphics guiGraphics, int panelLeft, int panelTop, int mouseX, int mouseY, float scale, float partialTicks) Render the icon- Parameters:
panelLeft- Left start position of the current panel the icon is rendered onpanelTop- Top start position of the current panel the icon is rendered on
-
render
default void render(net.minecraft.client.gui.GuiGraphics guiGraphics, int panelLeft, int panelTop, int mouseX, int mouseY, float scale, int width, int height, float partialTicks) -
getClientIcon
-