public class GuiComponentFluidTank extends BaseComponent
Modifier and Type | Field and Description |
---|---|
protected int |
height |
protected net.minecraftforge.fluids.FluidTank |
tank |
protected int |
width |
fontRenderer, keyboardEventListener, mouseEventListener, parent, toolTip, xPos, yPos
Constructor and Description |
---|
GuiComponentFluidTank(GuiBase<?> parent,
int x,
int y,
int w,
int h,
net.minecraftforge.fluids.FluidTank fluidTank)
Creates a fluid tank renderer
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Used to find how tall this is
|
net.minecraftforge.fluids.FluidTank |
getTank() |
int |
getWidth()
Used to find how wide this is
|
void |
render(int guiLeft,
int guiTop,
int mouseX,
int mouseY)
Called to render the component
|
void |
renderOverlay(int guiLeft,
int guiTop,
int mouseX,
int mouseY)
Called after base render, is already translated to guiLeft and guiTop, just move offset
|
void |
setHeight(int height) |
void |
setTank(net.minecraftforge.fluids.FluidTank tank) |
void |
setWidth(int width)
Accessors/Mutators *
|
getArea, getDynamicToolTip, getKeyboardEventListener, getMouseEventListener, getParent, getToolTip, getXPos, getYPos, isMouseOver, keyTyped, mouseDown, mouseDrag, mouseScrolled, mouseUp, renderToolTip, setKeyboardEventListener, setMouseEventListener, setParent, setToolTip, setXPos, setYPos
addButton, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onClose, removed, render, renderBackground, renderBackground, renderComponentHoverEffect, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, setSize, shouldCloseOnEsc, tick, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fillGradient, hLine, innerBlit, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected int width
protected int height
protected net.minecraftforge.fluids.FluidTank tank
public GuiComponentFluidTank(GuiBase<?> parent, int x, int y, int w, int h, net.minecraftforge.fluids.FluidTank fluidTank)
parent
- The parent GUIx
- The x posy
- The y posw
- The widthh
- The heightfluidTank
- The fluid tank, has fluid to renderpublic void render(int guiLeft, int guiTop, int mouseX, int mouseY)
render
in class BaseComponent
public void renderOverlay(int guiLeft, int guiTop, int mouseX, int mouseY)
renderOverlay
in class BaseComponent
public int getWidth()
getWidth
in class BaseComponent
public int getHeight()
getHeight
in class BaseComponent
public void setWidth(int width)
public void setHeight(int height)
public net.minecraftforge.fluids.FluidTank getTank()
public void setTank(net.minecraftforge.fluids.FluidTank tank)