public class EnergyBarScreenAddon extends BasicScreenAddon
| Constructor and Description |
|---|
EnergyBarScreenAddon(int posX,
int posY,
net.minecraftforge.energy.IEnergyStorage handler) |
| Modifier and Type | Method and Description |
|---|---|
static IAsset |
drawBackground(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int handlerPosX,
int handlerPosY,
int guiX,
int guiY) |
void |
drawBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int guiX,
int guiY,
int mouseX,
int mouseY,
float partialTicks)
Draws the component in the background layer
|
static void |
drawForeground(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int handlerPosX,
int handlerPosY,
int guiX,
int guiY,
double stored,
double capacity) |
void |
drawForegroundLayer(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int guiX,
int guiY,
int mouseX,
int mouseY)
Draws the component in the foreground layer
|
static java.util.List<net.minecraft.util.text.ITextComponent> |
getTooltip(int stored,
int capacity) |
java.util.List<net.minecraft.util.text.ITextComponent> |
getTooltipLines()
A list of strings that will be drawn as a tooltip when `isInside` returns true
|
int |
getXSize() |
int |
getYSize() |
getPosX, getPosY, isInside, setPosX, setPosYclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinit, isBackground, keyPressedpublic EnergyBarScreenAddon(int posX,
int posY,
net.minecraftforge.energy.IEnergyStorage handler)
public static IAsset drawBackground(com.mojang.blaze3d.matrix.MatrixStack stack, net.minecraft.client.gui.screen.Screen screen, IAssetProvider provider, int handlerPosX, int handlerPosY, int guiX, int guiY)
public static void drawForeground(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int handlerPosX,
int handlerPosY,
int guiX,
int guiY,
double stored,
double capacity)
public static java.util.List<net.minecraft.util.text.ITextComponent> getTooltip(int stored,
int capacity)
public int getXSize()
getXSize in class BasicScreenAddonpublic int getYSize()
getYSize in class BasicScreenAddonpublic void drawBackgroundLayer(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int guiX,
int guiY,
int mouseX,
int mouseY,
float partialTicks)
IScreenAddonscreen - The current open screenprovider - The current asset provider used in the GUIguiX - The gui X in the top left cornerguiY - The gui Y in the top left cornermouseX - The current mouse XmouseY - The current mouse YpartialTicks - Partial tickspublic void drawForegroundLayer(com.mojang.blaze3d.matrix.MatrixStack stack,
net.minecraft.client.gui.screen.Screen screen,
IAssetProvider provider,
int guiX,
int guiY,
int mouseX,
int mouseY)
IScreenAddonscreen - The current open screenprovider - The current asset provider used in the GUIguiX - The gui X in the top left cornerguiY - The gui Y in the top left cornermouseX - The current mouse XmouseY - The current mouse Ypublic java.util.List<net.minecraft.util.text.ITextComponent> getTooltipLines()
IScreenAddon