public abstract class SlotGui extends FocusableGui implements IRenderable
Modifier and Type | Field and Description |
---|---|
protected boolean |
centerListVertically |
protected static int |
DRAG_OUTSIDE |
protected int |
headerHeight |
protected int |
height |
protected int |
itemHeight |
protected Minecraft |
minecraft |
protected static int |
NO_DRAG |
protected boolean |
renderHeader |
protected boolean |
renderSelection |
private boolean |
scrolling |
protected boolean |
visible |
protected int |
width |
protected int |
x0 |
protected int |
x1 |
protected int |
y0 |
protected int |
y1 |
protected int |
yDrag |
protected double |
yo |
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
SlotGui(Minecraft mcIn,
int width,
int height,
int topIn,
int bottomIn,
int slotHeightIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
capYPosition() |
void |
centerScrollOn(int p_centerScrollOn_1_) |
boolean |
charTyped(char p_charTyped_1_,
int p_charTyped_2_) |
java.util.List<? extends IGuiEventListener> |
children() |
protected void |
clickedHeader(int p_clickedHeader_1_,
int p_clickedHeader_2_) |
protected void |
drawContainerBackground(Tessellator tessellator) |
int |
getItemAtPosition(double p_getItemAtPosition_1_,
double p_getItemAtPosition_3_) |
protected abstract int |
getItemCount() |
int |
getItemHeight() |
protected int |
getMaxPosition() |
int |
getMaxScroll() |
int |
getRowWidth() |
int |
getScroll() |
protected int |
getScrollbarPosition() |
int |
getScrollBottom() |
protected boolean |
isFocused() |
boolean |
isMouseInList(double p_isMouseInList_1_,
double p_isMouseInList_3_) |
boolean |
isMouseOver(double p_isMouseOver_1_,
double p_isMouseOver_3_) |
protected abstract boolean |
isSelectedItem(int p_isSelectedItem_1_) |
boolean |
isVisible() |
boolean |
keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_) |
boolean |
mouseClicked(double p_mouseClicked_1_,
double p_mouseClicked_3_,
int p_mouseClicked_5_) |
boolean |
mouseDragged(double p_mouseDragged_1_,
double p_mouseDragged_3_,
int p_mouseDragged_5_,
double p_mouseDragged_6_,
double p_mouseDragged_8_) |
boolean |
mouseReleased(double p_mouseReleased_1_,
double p_mouseReleased_3_,
int p_mouseReleased_5_) |
boolean |
mouseScrolled(double p_mouseScrolled_1_,
double p_mouseScrolled_3_,
double p_mouseScrolled_5_) |
protected void |
moveSelection(int p_moveSelection_1_) |
void |
render(int p_render_1_,
int p_render_2_,
float p_render_3_) |
protected abstract void |
renderBackground() |
protected void |
renderDecorations(int p_renderDecorations_1_,
int p_renderDecorations_2_) |
protected void |
renderHeader(int p_renderHeader_1_,
int p_renderHeader_2_,
Tessellator p_renderHeader_3_) |
protected void |
renderHoleBackground(int p_renderHoleBackground_1_,
int p_renderHoleBackground_2_,
int p_renderHoleBackground_3_,
int p_renderHoleBackground_4_) |
protected abstract void |
renderItem(int p_renderItem_1_,
int p_renderItem_2_,
int p_renderItem_3_,
int p_renderItem_4_,
int p_renderItem_5_,
int p_renderItem_6_,
float p_renderItem_7_) |
protected void |
renderList(int p_renderList_1_,
int p_renderList_2_,
int p_renderList_3_,
int p_renderList_4_,
float p_renderList_5_) |
void |
scroll(int p_scroll_1_) |
protected boolean |
selectItem(int p_selectItem_1_,
int p_selectItem_2_,
double p_selectItem_3_,
double p_selectItem_5_) |
void |
setLeftPos(int p_setLeftPos_1_) |
protected void |
setRenderHeader(boolean p_setRenderHeader_1_,
int p_setRenderHeader_2_) |
void |
setRenderSelection(boolean p_setRenderSelection_1_) |
void |
setVisible(boolean p_setVisible_1_) |
protected void |
updateItemPosition(int p_updateItemPosition_1_,
int p_updateItemPosition_2_,
int p_updateItemPosition_3_,
float p_updateItemPosition_4_) |
protected void |
updateScrollingState(double p_updateScrollingState_1_,
double p_updateScrollingState_3_,
int p_updateScrollingState_5_) |
void |
updateSize(int p_updateSize_1_,
int p_updateSize_2_,
int p_updateSize_3_,
int p_updateSize_4_) |
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, func_212932_b, getEventListenerForPos, keyReleased, setFocusedDefault
mouseMoved
protected static final int NO_DRAG
protected static final int DRAG_OUTSIDE
protected final Minecraft minecraft
protected int width
protected int height
protected int y0
protected int y1
protected int x1
protected int x0
protected final int itemHeight
protected boolean centerListVertically
protected int yDrag
protected double yo
protected boolean visible
protected boolean renderSelection
protected boolean renderHeader
protected int headerHeight
private boolean scrolling
public SlotGui(Minecraft mcIn, int width, int height, int topIn, int bottomIn, int slotHeightIn)
public void updateSize(int p_updateSize_1_, int p_updateSize_2_, int p_updateSize_3_, int p_updateSize_4_)
public void setRenderSelection(boolean p_setRenderSelection_1_)
protected void setRenderHeader(boolean p_setRenderHeader_1_, int p_setRenderHeader_2_)
public void setVisible(boolean p_setVisible_1_)
public boolean isVisible()
protected abstract int getItemCount()
public java.util.List<? extends IGuiEventListener> children()
children
in interface INestedGuiEventHandler
protected boolean selectItem(int p_selectItem_1_, int p_selectItem_2_, double p_selectItem_3_, double p_selectItem_5_)
protected abstract boolean isSelectedItem(int p_isSelectedItem_1_)
protected int getMaxPosition()
protected abstract void renderBackground()
protected void updateItemPosition(int p_updateItemPosition_1_, int p_updateItemPosition_2_, int p_updateItemPosition_3_, float p_updateItemPosition_4_)
protected abstract void renderItem(int p_renderItem_1_, int p_renderItem_2_, int p_renderItem_3_, int p_renderItem_4_, int p_renderItem_5_, int p_renderItem_6_, float p_renderItem_7_)
protected void renderHeader(int p_renderHeader_1_, int p_renderHeader_2_, Tessellator p_renderHeader_3_)
protected void clickedHeader(int p_clickedHeader_1_, int p_clickedHeader_2_)
protected void renderDecorations(int p_renderDecorations_1_, int p_renderDecorations_2_)
public int getItemAtPosition(double p_getItemAtPosition_1_, double p_getItemAtPosition_3_)
protected void capYPosition()
public int getMaxScroll()
public void centerScrollOn(int p_centerScrollOn_1_)
public int getScroll()
public boolean isMouseInList(double p_isMouseInList_1_, double p_isMouseInList_3_)
public int getScrollBottom()
public void scroll(int p_scroll_1_)
public void render(int p_render_1_, int p_render_2_, float p_render_3_)
render
in interface IRenderable
protected void updateScrollingState(double p_updateScrollingState_1_, double p_updateScrollingState_3_, int p_updateScrollingState_5_)
public boolean mouseClicked(double p_mouseClicked_1_, double p_mouseClicked_3_, int p_mouseClicked_5_)
mouseClicked
in interface IGuiEventListener
mouseClicked
in interface INestedGuiEventHandler
public boolean mouseReleased(double p_mouseReleased_1_, double p_mouseReleased_3_, int p_mouseReleased_5_)
mouseReleased
in interface IGuiEventListener
mouseReleased
in interface INestedGuiEventHandler
public boolean mouseDragged(double p_mouseDragged_1_, double p_mouseDragged_3_, int p_mouseDragged_5_, double p_mouseDragged_6_, double p_mouseDragged_8_)
mouseDragged
in interface IGuiEventListener
mouseDragged
in interface INestedGuiEventHandler
public boolean mouseScrolled(double p_mouseScrolled_1_, double p_mouseScrolled_3_, double p_mouseScrolled_5_)
mouseScrolled
in interface IGuiEventListener
mouseScrolled
in interface INestedGuiEventHandler
public boolean keyPressed(int p_keyPressed_1_, int p_keyPressed_2_, int p_keyPressed_3_)
keyPressed
in interface IGuiEventListener
keyPressed
in interface INestedGuiEventHandler
protected void moveSelection(int p_moveSelection_1_)
public boolean charTyped(char p_charTyped_1_, int p_charTyped_2_)
charTyped
in interface IGuiEventListener
charTyped
in interface INestedGuiEventHandler
public boolean isMouseOver(double p_isMouseOver_1_, double p_isMouseOver_3_)
isMouseOver
in interface IGuiEventListener
public int getRowWidth()
protected void renderList(int p_renderList_1_, int p_renderList_2_, int p_renderList_3_, int p_renderList_4_, float p_renderList_5_)
protected boolean isFocused()
protected int getScrollbarPosition()
protected void renderHoleBackground(int p_renderHoleBackground_1_, int p_renderHoleBackground_2_, int p_renderHoleBackground_3_, int p_renderHoleBackground_4_)
public void setLeftPos(int p_setLeftPos_1_)
public int getItemHeight()
protected void drawContainerBackground(Tessellator tessellator)