public abstract class GuiComponentTextureAnimated extends GuiComponentTexture
Modifier and Type | Class and Description |
---|---|
static class |
GuiComponentTextureAnimated.ANIMATION_DIRECTION
Tells the component which way to render the texture
|
Modifier and Type | Field and Description |
---|---|
protected GuiComponentTextureAnimated.ANIMATION_DIRECTION |
animationDirection |
height, u, v, width
fontRenderer, keyboardEventListener, mouseEventListener, parent, toolTip, xPos, yPos
Constructor and Description |
---|
GuiComponentTextureAnimated(GuiBase<?> parent,
int x,
int y,
int texU,
int texV,
int imageWidth,
int imageHeight,
GuiComponentTextureAnimated.ANIMATION_DIRECTION dir)
Creates a textured area
|
Modifier and Type | Method and Description |
---|---|
GuiComponentTextureAnimated.ANIMATION_DIRECTION |
getAnimationDirection()
Accessors/Mutators *
|
protected abstract int |
getCurrentProgress(int scale)
Get the current scale, scaled to the width
|
void |
render(int guiLeft,
int guiTop,
int mouseX,
int mouseY)
Called to render the component
|
void |
setAnimationDirection(GuiComponentTextureAnimated.ANIMATION_DIRECTION animationDirection) |
getHeight, getU, getV, getWidth, renderOverlay, setHeight, setU, setV, setWidth
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 GuiComponentTextureAnimated.ANIMATION_DIRECTION animationDirection
public GuiComponentTextureAnimated(GuiBase<?> parent, int x, int y, int texU, int texV, int imageWidth, int imageHeight, GuiComponentTextureAnimated.ANIMATION_DIRECTION dir)
parent
- The parent GUIx
- The x posy
- The y postexU
- The texture utexV
- The texture vimageWidth
- The image widthimageHeight
- The image heightprotected abstract int getCurrentProgress(int scale)
scale
- What to scale topublic void render(int guiLeft, int guiTop, int mouseX, int mouseY)
render
in class GuiComponentTexture
public GuiComponentTextureAnimated.ANIMATION_DIRECTION getAnimationDirection()
public void setAnimationDirection(GuiComponentTextureAnimated.ANIMATION_DIRECTION animationDirection)