public class GuiComponentTabSlotHolder extends BaseComponent
Modifier and Type | Field and Description |
---|---|
boolean |
doRender |
protected net.minecraft.inventory.container.Slot |
heldSlot |
protected GuiTab |
parentTab |
protected int |
shownX |
protected int |
shownY |
protected GuiComponentTexture |
slotTexture |
fontRenderer, keyboardEventListener, mouseEventListener, parent, toolTip, xPos, yPos
Constructor and Description |
---|
GuiComponentTabSlotHolder(GuiBase<?> parentGui,
int x,
int y,
net.minecraft.inventory.container.Slot heldSlot,
int slotX,
int slotY,
int u,
int v,
GuiTab parentTab)
Creates an object that will move the physical slot when should render
This object will move the container slot, but also needs the texture to render
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Used to find how tall this is
|
int |
getWidth()
Used to find how wide this is
|
void |
moveSlots(boolean doRender)
Called by parent tab to move around
|
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
|
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 net.minecraft.inventory.container.Slot heldSlot
protected int shownX
protected int shownY
protected GuiTab parentTab
protected GuiComponentTexture slotTexture
public boolean doRender
public GuiComponentTabSlotHolder(GuiBase<?> parentGui, int x, int y, net.minecraft.inventory.container.Slot heldSlot, int slotX, int slotY, int u, int v, GuiTab parentTab)
parentGui
- The parent guix
- The component xy
- The component yheldSlot
- The slot to move aboutpublic void moveSlots(boolean doRender)
doRender
- Do the 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