public class GuiComponentTexture extends BaseComponent
Modifier and Type | Field and Description |
---|---|
protected int |
height |
protected int |
u |
protected int |
v |
protected int |
width |
fontRenderer, keyboardEventListener, mouseEventListener, parent, toolTip, xPos, yPos
Constructor and Description |
---|
GuiComponentTexture(GuiBase<?> parent,
int x,
int y,
int texU,
int texV,
int imageWidth,
int imageHeight)
Creates a textured area
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Used to find how tall this is
|
int |
getU()
Accessors/Mutators *
|
int |
getV() |
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 |
setU(int u) |
void |
setV(int v) |
void |
setWidth(int width) |
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 u
protected int v
protected int width
protected int height
public GuiComponentTexture(GuiBase<?> parent, int x, int y, int texU, int texV, int imageWidth, int imageHeight)
parent
- The parent GUIx
- The x posy
- The y postexU
- The texture utexV
- The texture vimageWidth
- The image widthimageHeight
- The image heightpublic 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 int getU()
public void setU(int u)
public int getV()
public void setV(int v)
public void setWidth(int width)
public void setHeight(int height)