public abstract class AbstractList<E extends AbstractList.AbstractListEntry<E>> extends FocusableGui implements IRenderable
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractList.AbstractListEntry<E extends AbstractList.AbstractListEntry<E>> |
| 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 boolean |
renderHeader |
protected boolean |
renderSelection |
protected int |
width |
protected int |
x0 |
protected int |
x1 |
protected int |
y0 |
protected int |
y1 |
protected int |
yDrag |
BACKGROUND_LOCATION, blitOffset, GUI_ICONS_LOCATION, STATS_ICON_LOCATION| Constructor and Description |
|---|
AbstractList(Minecraft p_i51146_1_,
int p_i51146_2_,
int p_i51146_3_,
int p_i51146_4_,
int p_i51146_5_,
int p_i51146_6_) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
addEntry(E p_addEntry_1_) |
protected void |
centerScrollOn(E p_centerScrollOn_1_) |
java.util.List<E> |
children() |
protected void |
clearEntries() |
protected void |
clickedHeader(int p_clickedHeader_1_,
int p_clickedHeader_2_) |
protected void |
ensureVisible(E p_ensureVisible_1_) |
int |
getBottom() |
protected E |
getEntry(int p_getEntry_1_) |
protected E |
getEntryAtPosition(double p_getEntryAtPosition_1_,
double p_getEntryAtPosition_3_) |
E |
getFocused() |
int |
getHeight() |
protected int |
getItemCount() |
int |
getLeft() |
protected int |
getMaxPosition() |
int |
getRight() |
protected int |
getRowLeft() |
protected int |
getRowTop(int p_getRowTop_1_) |
int |
getRowWidth() |
double |
getScrollAmount() |
protected int |
getScrollbarPosition() |
int |
getScrollBottom() |
E |
getSelected() |
int |
getTop() |
int |
getWidth() |
protected boolean |
isFocused() |
boolean |
isMouseOver(double p_isMouseOver_1_,
double p_isMouseOver_3_) |
protected boolean |
isSelectedItem(int p_isSelectedItem_1_) |
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_) |
protected E |
remove(int p_remove_1_) |
protected boolean |
removeEntry(E p_removeEntry_1_) |
void |
render(int p_render_1_,
int p_render_2_,
float p_render_3_) |
protected 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 void |
renderList(int p_renderList_1_,
int p_renderList_2_,
int p_renderList_3_,
int p_renderList_4_,
float p_renderList_5_) |
protected void |
replaceEntries(java.util.Collection<E> p_replaceEntries_1_) |
void |
setLeftPos(int p_setLeftPos_1_) |
protected void |
setRenderHeader(boolean p_setRenderHeader_1_,
int p_setRenderHeader_2_) |
void |
setRenderSelection(boolean p_setRenderSelection_1_) |
void |
setScrollAmount(double p_setScrollAmount_1_) |
void |
setSelected(E p_setSelected_1_) |
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_) |
isDragging, setDragging, setFocusedblit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fillGradient, hLine, innerBlit, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, func_212928_a, func_212930_a, func_212932_b, keyReleasedmouseMovedprotected static final int DRAG_OUTSIDE
protected final Minecraft minecraft
protected final int itemHeight
protected int width
protected int height
protected int y0
protected int y1
protected int x1
protected int x0
protected boolean centerListVertically
protected int yDrag
protected boolean renderSelection
protected boolean renderHeader
protected int headerHeight
public AbstractList(Minecraft p_i51146_1_, int p_i51146_2_, int p_i51146_3_, int p_i51146_4_, int p_i51146_5_, int p_i51146_6_)
public void setRenderSelection(boolean p_setRenderSelection_1_)
protected void setRenderHeader(boolean p_setRenderHeader_1_,
int p_setRenderHeader_2_)
public int getRowWidth()
@Nullable public E getSelected()
public void setSelected(@Nullable
E p_setSelected_1_)
@Nullable public E getFocused()
getFocused in interface INestedGuiEventHandlergetFocused in class FocusableGuipublic final java.util.List<E> children()
children in interface INestedGuiEventHandlerprotected final void clearEntries()
protected void replaceEntries(java.util.Collection<E> p_replaceEntries_1_)
protected E getEntry(int p_getEntry_1_)
protected int addEntry(E p_addEntry_1_)
protected int getItemCount()
protected boolean isSelectedItem(int p_isSelectedItem_1_)
@Nullable protected final E getEntryAtPosition(double p_getEntryAtPosition_1_, double p_getEntryAtPosition_3_)
public void updateSize(int p_updateSize_1_,
int p_updateSize_2_,
int p_updateSize_3_,
int p_updateSize_4_)
public void setLeftPos(int p_setLeftPos_1_)
protected int getMaxPosition()
protected void clickedHeader(int p_clickedHeader_1_,
int p_clickedHeader_2_)
protected void renderHeader(int p_renderHeader_1_,
int p_renderHeader_2_,
Tessellator p_renderHeader_3_)
protected void renderBackground()
protected void renderDecorations(int p_renderDecorations_1_,
int p_renderDecorations_2_)
public void render(int p_render_1_,
int p_render_2_,
float p_render_3_)
render in interface IRenderableprotected void centerScrollOn(E p_centerScrollOn_1_)
protected void ensureVisible(E p_ensureVisible_1_)
public double getScrollAmount()
public void setScrollAmount(double p_setScrollAmount_1_)
public int getScrollBottom()
protected void updateScrollingState(double p_updateScrollingState_1_,
double p_updateScrollingState_3_,
int p_updateScrollingState_5_)
protected int getScrollbarPosition()
public boolean mouseClicked(double p_mouseClicked_1_,
double p_mouseClicked_3_,
int p_mouseClicked_5_)
mouseClicked in interface IGuiEventListenermouseClicked in interface INestedGuiEventHandlerpublic boolean mouseReleased(double p_mouseReleased_1_,
double p_mouseReleased_3_,
int p_mouseReleased_5_)
mouseReleased in interface IGuiEventListenermouseReleased in interface INestedGuiEventHandlerpublic 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 IGuiEventListenermouseDragged in interface INestedGuiEventHandlerpublic boolean mouseScrolled(double p_mouseScrolled_1_,
double p_mouseScrolled_3_,
double p_mouseScrolled_5_)
mouseScrolled in interface IGuiEventListenermouseScrolled in interface INestedGuiEventHandlerpublic boolean keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_)
keyPressed in interface IGuiEventListenerkeyPressed in interface INestedGuiEventHandlerprotected void moveSelection(int p_moveSelection_1_)
public boolean isMouseOver(double p_isMouseOver_1_,
double p_isMouseOver_3_)
isMouseOver in interface IGuiEventListenerprotected void renderList(int p_renderList_1_,
int p_renderList_2_,
int p_renderList_3_,
int p_renderList_4_,
float p_renderList_5_)
protected int getRowLeft()
protected int getRowTop(int p_getRowTop_1_)
protected boolean isFocused()
protected void renderHoleBackground(int p_renderHoleBackground_1_,
int p_renderHoleBackground_2_,
int p_renderHoleBackground_3_,
int p_renderHoleBackground_4_)
protected E remove(int p_remove_1_)
protected boolean removeEntry(E p_removeEntry_1_)
public int getWidth()
public int getHeight()
public int getTop()
public int getBottom()
public int getLeft()
public int getRight()