public class GuiSelectStringEntries extends GuiListExtended
| Modifier and Type | Class and Description |
|---|---|
static class |
GuiSelectStringEntries.EntryComparator |
static interface |
GuiSelectStringEntries.IGuiSelectStringListEntry |
static class |
GuiSelectStringEntries.ListEntry |
GuiListExtended.IGuiListEntry| Modifier and Type | Field and Description |
|---|---|
IConfigElement |
configElement |
java.util.List<GuiSelectStringEntries.IGuiSelectStringListEntry> |
listEntries |
int |
maxEntryWidth |
Minecraft |
mc |
GuiSelectString |
owningScreen |
java.util.Map<java.lang.Object,java.lang.String> |
selectableValues |
int |
selectedIndex |
bottom, field_148163_i, headerPadding, height, left, mouseX, mouseY, right, slotHeight, top, width| Constructor and Description |
|---|
GuiSelectStringEntries(GuiSelectString owningScreen,
Minecraft mc,
IConfigElement configElement,
java.util.Map<java.lang.Object,java.lang.String> selectableValues) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
elementClicked(int index,
boolean doubleClick,
int mouseX,
int mouseY)
The element in the slot that was clicked, boolean for whether it was double clicked or not
|
GuiSelectStringEntries.IGuiSelectStringListEntry |
getListEntry(int index) |
int |
getListWidth()
Gets the width of the list
|
protected int |
getScrollBarX() |
protected int |
getSize() |
boolean |
isChanged() |
boolean |
isDefault() |
protected boolean |
isSelected(int index)
Returns true if the element passed in is currently selected
|
void |
saveChanges() |
drawBackground, drawSlot, func_148179_a, func_148181_bactionPerformed, drawListHeader, drawScreen, drawSelectionBox, func_148122_a, func_148124_c, func_148125_i, func_148132_a, func_148135_f, func_148141_e, func_148142_b, func_148143_b, getAmountScrolled, getContentHeight, getSlotHeight, registerScrollButtons, scrollBy, setHasListHeader, setShowSelectionBox, setSlotXBoundsFromLeftpublic GuiSelectString owningScreen
public Minecraft mc
public IConfigElement configElement
public java.util.List<GuiSelectStringEntries.IGuiSelectStringListEntry> listEntries
public final java.util.Map<java.lang.Object,java.lang.String> selectableValues
public int selectedIndex
public int maxEntryWidth
public GuiSelectStringEntries(GuiSelectString owningScreen, Minecraft mc, IConfigElement configElement, java.util.Map<java.lang.Object,java.lang.String> selectableValues)
protected void elementClicked(int index,
boolean doubleClick,
int mouseX,
int mouseY)
elementClicked in class GuiListExtendedprotected boolean isSelected(int index)
isSelected in class GuiListExtendedprotected int getScrollBarX()
getScrollBarX in class GuiSlotpublic int getListWidth()
getListWidth in class GuiSlotpublic GuiSelectStringEntries.IGuiSelectStringListEntry getListEntry(int index)
getListEntry in class GuiListExtendedpublic boolean isChanged()
public boolean isDefault()
public void saveChanges()