public abstract class GuiForestry<C extends net.minecraft.inventory.Container> extends net.minecraft.client.gui.inventory.GuiContainer implements IGuiSizable
| Modifier and Type | Field and Description |
|---|---|
protected C |
container |
protected LedgerManager |
ledgerManager |
protected TextLayoutHelper |
textLayout |
net.minecraft.util.ResourceLocation |
textureFile |
protected WidgetManager |
widgetManager |
protected Window |
window |
dragSplitting, dragSplittingSlots, guiLeft, guiTop, INVENTORY_BACKGROUND, inventorySlots, xSize, ySize| Modifier | Constructor and Description |
|---|---|
protected |
GuiForestry(net.minecraft.util.ResourceLocation texture,
C container) |
protected |
GuiForestry(java.lang.String texture,
C container) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addClimateLedger(IClimatised climatised) |
protected void |
addErrorLedger(IErrorLogicSource errorSource) |
protected void |
addErrorLedger(IErrorSource errorSource) |
protected void |
addHintLedger(java.util.List<java.lang.String> hints) |
protected void |
addHintLedger(java.lang.String hintsKey) |
protected abstract void |
addLedgers() |
protected void |
addOwnerLedger(IOwnedTile ownedTile) |
protected void |
addPowerLedger(EnergyManager energyManager) |
protected void |
bindTexture(net.minecraft.util.ResourceLocation texturePath) |
protected void |
drawBackground() |
void |
drawGradientRect(int par1,
int par2,
int par3,
int par4,
int par5,
int par6) |
protected void |
drawGuiContainerBackgroundLayer(float f,
int mouseX,
int mouseY) |
protected void |
drawGuiContainerForegroundLayer(int mouseX,
int mouseY) |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
protected void |
drawWidgets() |
java.util.List<java.awt.Rectangle> |
getExtraGuiAreas() |
net.minecraftforge.fluids.FluidStack |
getFluidStackAtPosition(int mouseX,
int mouseY) |
ColourProperties |
getFontColor() |
net.minecraft.client.gui.FontRenderer |
getFontRenderer() |
int |
getGuiLeft() |
int |
getGuiTop() |
net.minecraft.client.Minecraft |
getMC() |
int |
getSizeX() |
int |
getSizeY() |
protected net.minecraft.inventory.Slot |
getSlotAtPosition(int mouseX,
int mouseY) |
TextLayoutHelper |
getTextLayout() |
protected boolean |
hasClickedOutside(int mouseX,
int mouseY,
int guiLeft,
int guiTop) |
void |
initGui() |
protected void |
keyTyped(char typedChar,
int keyCode) |
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton) |
protected void |
mouseReleased(int mouseX,
int mouseY,
int mouseButton) |
void |
onGuiClosed() |
void |
setWorldAndResolution(net.minecraft.client.Minecraft mc,
int width,
int height) |
void |
setZLevel(float level) |
void |
updateScreen() |
checkHotbarKeys, doesGuiPauseGame, getSlotUnderMouse, getXSize, getYSize, handleMouseClick, isPointInRegion, mouseClickMove, renderHoveredToolTipactionPerformed, addButton, confirmClicked, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, getItemToolTip, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isFocused, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setFocused, setGuiSize, setTextprotected final C extends net.minecraft.inventory.Container container
public final net.minecraft.util.ResourceLocation textureFile
protected final WidgetManager widgetManager
protected final LedgerManager ledgerManager
protected final TextLayoutHelper textLayout
protected final Window window
protected GuiForestry(java.lang.String texture,
C container)
protected GuiForestry(net.minecraft.util.ResourceLocation texture,
C container)
public void initGui()
initGui in class net.minecraft.client.gui.inventory.GuiContainerpublic void setWorldAndResolution(net.minecraft.client.Minecraft mc,
int width,
int height)
setWorldAndResolution in class net.minecraft.client.gui.GuiScreenpublic void updateScreen()
updateScreen in class net.minecraft.client.gui.inventory.GuiContainerpublic void drawScreen(int mouseX,
int mouseY,
float partialTicks)
drawScreen in class net.minecraft.client.gui.inventory.GuiContainerprotected abstract void addLedgers()
protected final void addErrorLedger(IErrorSource errorSource)
protected final void addErrorLedger(IErrorLogicSource errorSource)
protected final void addClimateLedger(IClimatised climatised)
protected final void addPowerLedger(EnergyManager energyManager)
protected final void addHintLedger(java.lang.String hintsKey)
protected final void addHintLedger(java.util.List<java.lang.String> hints)
protected final void addOwnerLedger(IOwnedTile ownedTile)
public void onGuiClosed()
onGuiClosed in class net.minecraft.client.gui.inventory.GuiContainerpublic ColourProperties getFontColor()
public net.minecraft.client.gui.FontRenderer getFontRenderer()
protected void mouseClicked(int mouseX,
int mouseY,
int mouseButton)
throws java.io.IOException
mouseClicked in class net.minecraft.client.gui.inventory.GuiContainerjava.io.IOExceptionprotected void mouseReleased(int mouseX,
int mouseY,
int mouseButton)
mouseReleased in class net.minecraft.client.gui.inventory.GuiContainerprotected void keyTyped(char typedChar,
int keyCode)
throws java.io.IOException
keyTyped in class net.minecraft.client.gui.inventory.GuiContainerjava.io.IOException@Nullable
public net.minecraftforge.fluids.FluidStack getFluidStackAtPosition(int mouseX,
int mouseY)
@Nullable
protected net.minecraft.inventory.Slot getSlotAtPosition(int mouseX,
int mouseY)
protected boolean hasClickedOutside(int mouseX,
int mouseY,
int guiLeft,
int guiTop)
hasClickedOutside in class net.minecraft.client.gui.inventory.GuiContainerprotected void drawGuiContainerForegroundLayer(int mouseX,
int mouseY)
drawGuiContainerForegroundLayer in class net.minecraft.client.gui.inventory.GuiContainerprotected void drawGuiContainerBackgroundLayer(float f,
int mouseX,
int mouseY)
drawGuiContainerBackgroundLayer in class net.minecraft.client.gui.inventory.GuiContainerprotected void drawBackground()
protected void drawWidgets()
protected void bindTexture(net.minecraft.util.ResourceLocation texturePath)
public void setZLevel(float level)
public int getSizeX()
getSizeX in interface IGuiSizablepublic int getSizeY()
getSizeY in interface IGuiSizablepublic int getGuiLeft()
getGuiLeft in interface IGuiSizablegetGuiLeft in class net.minecraft.client.gui.inventory.GuiContainerpublic int getGuiTop()
getGuiTop in interface IGuiSizablegetGuiTop in class net.minecraft.client.gui.inventory.GuiContainerpublic net.minecraft.client.Minecraft getMC()
getMC in interface IGuiSizablepublic void drawGradientRect(int par1,
int par2,
int par3,
int par4,
int par5,
int par6)
drawGradientRect in class net.minecraft.client.gui.Guipublic java.util.List<java.awt.Rectangle> getExtraGuiAreas()
public TextLayoutHelper getTextLayout()