public class GuiConfigEntries extends GuiListExtended
Modifier and Type | Class and Description |
---|---|
static class |
GuiConfigEntries.ArrayEntry
ArrayEntry
Provides a GuiButton with the list contents as the displayString.
|
static class |
GuiConfigEntries.BooleanEntry
BooleanPropEntry
Provides a GuiButton that toggles between true and false.
|
static class |
GuiConfigEntries.ButtonEntry
ButtonEntry
Provides a basic GuiButton entry to be used as a base for other entries that require a button for the value.
|
static class |
GuiConfigEntries.CategoryEntry
CategoryEntry
Provides an entry that consists of a GuiButton for navigating to the child category GuiConfig screen.
|
static class |
GuiConfigEntries.ChatColorEntry
ChatColorEntry
Provides a GuiButton that cycles through the list of chat color codes.
|
static class |
GuiConfigEntries.CycleValueEntry
CycleValueEntry
Provides a GuiButton that cycles through the prop's validValues array.
|
static class |
GuiConfigEntries.DoubleEntry
DoubleEntry
Provides a GuiTextField for user input.
|
static interface |
GuiConfigEntries.IConfigEntry
Provides an interface for defining GuiConfigEntry.listEntry objects.
|
static class |
GuiConfigEntries.IntegerEntry
IntegerEntry
Provides a GuiTextField for user input.
|
static class |
GuiConfigEntries.ListEntryBase
ListEntryBase
Provides a base entry for others to extend.
|
static class |
GuiConfigEntries.NumberSliderEntry
NumberSliderEntry
Provides a slider for numeric properties.
|
static class |
GuiConfigEntries.SelectValueEntry
SelectValueEntry
Provides a GuiButton with the current value as the displayString.
|
static class |
GuiConfigEntries.StringEntry
StringEntry
Provides a GuiTextField for user input.
|
GuiListExtended.IGuiListEntry
Modifier and Type | Field and Description |
---|---|
int |
controlWidth
The width of the control.
|
int |
controlX
The x position where the control should be drawn.
|
int |
labelX
The x position where the label should be drawn.
|
java.util.List<GuiConfigEntries.IConfigEntry> |
listEntries |
int |
maxEntryRightBound
The max x boundary of all IConfigEntry objects.
|
int |
maxLabelTextWidth
The max width of the label of all IConfigEntry objects.
|
Minecraft |
mc |
GuiConfig |
owningScreen |
int |
resetX
The minimum x position where the Undo/Default buttons will start
|
int |
scrollBarX
The x position of the scroll bar.
|
amountScrolled, bottom, centerListVertically, hasListHeader, headerPadding, height, initialClickY, lastClicked, left, mouseX, mouseY, right, scrollMultiplier, selectedElement, showSelectionBox, slotHeight, top, visible, width
Constructor and Description |
---|
GuiConfigEntries(GuiConfig parent,
Minecraft mc) |
Modifier and Type | Method and Description |
---|---|
boolean |
areAllEntriesDefault(boolean includeChildren)
Returns true if all IConfigEntry objects on this screen are set to default.
|
boolean |
areAnyEntriesEnabled(boolean includeChildren)
Returns true if any IConfigEntry objects on this screen are enabled.
|
void |
drawScreenPost(int mouseX,
int mouseY,
float partialTicks)
Calls the drawToolTip() method for all IConfigEntry objects on this screen.
|
GuiConfigEntries.IConfigEntry |
getListEntry(int index)
Gets the IGuiListEntry object for the given index
|
int |
getListWidth()
Gets the width of the list
|
int |
getScrollBarX() |
int |
getSize() |
boolean |
hasChangedEntry(boolean includeChildren)
Returns true if any IConfigEntry objects on this screen are changed.
|
protected void |
initGui() |
void |
keyTyped(char eventChar,
int eventKey)
This method is a pass-through for IConfigEntry objects that require keystrokes.
|
void |
mouseClickedPassThru(int mouseX,
int mouseY,
int mouseEvent)
This method is a pass-through for IConfigEntry objects that contain GuiTextField elements.
|
void |
onGuiClosed()
This method is a pass-through for IConfigEntry objects that need to perform actions when the containing GUI is closed.
|
boolean |
saveConfigElements()
Saves all properties on this screen / child screens.
|
void |
setAllToDefault(boolean includeChildren)
Sets all IConfigEntry objects on this screen to default.
|
void |
undoAllChanges(boolean includeChildren)
Reverts changes to all IConfigEntry objects on this screen.
|
void |
updateScreen()
This method is a pass-through for IConfigEntry objects that contain GuiTextField elements.
|
drawBackground, drawSlot, elementClicked, isSelected, 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 final GuiConfig owningScreen
public final Minecraft mc
public java.util.List<GuiConfigEntries.IConfigEntry> listEntries
public int maxLabelTextWidth
public int maxEntryRightBound
public int labelX
public int controlX
public int controlWidth
public int resetX
public int scrollBarX
protected void initGui()
public GuiConfigEntries.IConfigEntry getListEntry(int index)
getListEntry
in class GuiListExtended
public int getScrollBarX()
getScrollBarX
in class GuiSlot
public int getListWidth()
getListWidth
in class GuiSlot
public void keyTyped(char eventChar, int eventKey)
public void updateScreen()
public void mouseClickedPassThru(int mouseX, int mouseY, int mouseEvent)
public void onGuiClosed()
public boolean saveConfigElements()
public boolean areAllEntriesDefault(boolean includeChildren)
public void setAllToDefault(boolean includeChildren)
public boolean hasChangedEntry(boolean includeChildren)
public boolean areAnyEntriesEnabled(boolean includeChildren)
public void undoAllChanges(boolean includeChildren)
public void drawScreenPost(int mouseX, int mouseY, float partialTicks)