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 |
amountScrolled, bottom, centerListVertically, hasListHeader, headerPadding, height, initialClickY, lastClicked, left, mouseX, mouseY, right, scrollMultiplier, selectedElement, showSelectionBox, slotHeight, top, visible, 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, mouseClicked, mouseReleased, updateItemPos
actionPerformed, bindAmountScrolled, clickedHeader, drawContainerBackground, drawListHeader, drawScreen, drawSelectionBox, getAmountScrolled, getContentHeight, getEnabled, getMaxScroll, getSlotHeight, getSlotIndexFromScreenCoords, handleMouseInput, isMouseYWithinSlotBounds, overlayBackground, registerScrollButtons, renderDecorations, scrollBy, setDimensions, setEnabled, setHasListHeader, setShowSelectionBox, setSlotXBoundsFromLeft
public 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 GuiListExtended
protected boolean isSelected(int index)
isSelected
in class GuiListExtended
protected int getScrollBarX()
getScrollBarX
in class GuiSlot
public int getListWidth()
getListWidth
in class GuiSlot
public GuiSelectStringEntries.IGuiSelectStringListEntry getListEntry(int index)
getListEntry
in class GuiListExtended
public boolean isChanged()
public boolean isDefault()
public void saveChanges()