public class GuiReverseTab extends GuiTab
children, currentHeight, currentWidth, dHeight, dWidth, expandedHeight, expandedWidth, FOLDED_SIZE, isActive, itemRenderer, stack, tabRenderer, u, v
fontRenderer, keyboardEventListener, mouseEventListener, parent, toolTip, xPos, yPos
Constructor and Description |
---|
GuiReverseTab(GuiBase<?> parent,
int x,
int y,
int u,
int v,
int exWidth,
int exHeight,
net.minecraft.item.ItemStack displayStack)
Creates a Gui Tab
IMPORTANT: Texture should be a full nine patch renderer minus the right column of cells
See NinePatchRenderer construction for more info
|
Modifier and Type | Method and Description |
---|---|
boolean |
isMouseOver(int mouseX,
int mouseY)
Used to check if the mouse if currently over the component
You must have the getWidth() and getHeight() functions defined for this to work properly
|
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
|
addChild, areChildrenActive, getChildren, getHeight, getStack, getU, getV, getWidth, isActive, keyTyped, mouseDownActivated, mouseDragActivated, mouseScrolledTab, mouseUpActivated, moveSlots, renderToolTip, setActive, setChildren, setStack, setU, setV
getArea, getDynamicToolTip, getKeyboardEventListener, getMouseEventListener, getParent, getToolTip, getXPos, getYPos, mouseDown, mouseDrag, mouseScrolled, mouseUp, 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
public GuiReverseTab(GuiBase<?> parent, int x, int y, int u, int v, int exWidth, int exHeight, @Nullable net.minecraft.item.ItemStack displayStack)
parent
- The parent GUIx
- The x posy
- The y posu
- The texture u, this is the first cell for the nine patch rendererv
- The texture v, this is the first cell for the nine patch rendererexWidth
- The expanded widthexHeight
- The expanded heightdisplayStack
- The stack to displaypublic void render(int guiLeft, int guiTop, int mouseX, int mouseY)
public void renderOverlay(int guiLeft, int guiTop, int mouseX, int mouseY)
renderOverlay
in class GuiTab
public boolean isMouseOver(int mouseX, int mouseY)
isMouseOver
in class BaseComponent
mouseX
- Mouse X PositionmouseY
- Mouse Y Position