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>> |
(package private) class |
AbstractList.SimpleArrayList |
Modifier and Type | Field and Description |
---|---|
protected boolean |
centerListVertically |
private java.util.List<E> |
children |
protected static int |
DRAG_OUTSIDE |
protected int |
headerHeight |
protected int |
height |
protected int |
itemHeight |
protected Minecraft |
minecraft |
protected boolean |
renderHeader |
protected boolean |
renderSelection |
private double |
scrollAmount |
private boolean |
scrolling |
private E |
selected |
protected int |
width |
protected int |
x0 |
protected int |
x1 |
protected int |
y0 |
protected int |
y1 |
protected int |
yDrag |
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
AbstractList(Minecraft mcIn,
int widthIn,
int heightIn,
int topIn,
int bottomIn,
int itemHeightIn) |
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() |
private int |
getMaxScroll() |
int |
getRight() |
private int |
getRowBottom(int p_getRowBottom_1_) |
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_) |
private void |
scroll(int p_scroll_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, 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, charTyped, func_212932_b, getEventListenerForPos, keyReleased, setFocusedDefault
mouseMoved
protected static final int DRAG_OUTSIDE
protected final Minecraft minecraft
protected final int itemHeight
private final java.util.List<E extends AbstractList.AbstractListEntry<E>> children
protected int width
protected int height
protected int y0
protected int y1
protected int x1
protected int x0
protected boolean centerListVertically
protected int yDrag
private double scrollAmount
protected boolean renderSelection
protected boolean renderHeader
protected int headerHeight
private boolean scrolling
private E extends AbstractList.AbstractListEntry<E> selected
public AbstractList(Minecraft mcIn, int widthIn, int heightIn, int topIn, int bottomIn, int itemHeightIn)
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 INestedGuiEventHandler
getFocused
in class FocusableGui
public final java.util.List<E> children()
children
in interface INestedGuiEventHandler
protected 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 IRenderable
protected void centerScrollOn(E p_centerScrollOn_1_)
protected void ensureVisible(E p_ensureVisible_1_)
private void scroll(int p_scroll_1_)
public double getScrollAmount()
public void setScrollAmount(double p_setScrollAmount_1_)
private int getMaxScroll()
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 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 isMouseOver(double p_isMouseOver_1_, double p_isMouseOver_3_)
isMouseOver
in interface IGuiEventListener
protected 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_)
private int getRowBottom(int p_getRowBottom_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()