public class GuiFlatPresets extends GuiScreen
Modifier and Type | Class and Description |
---|---|
(package private) static class |
GuiFlatPresets.LayerItem |
(package private) class |
GuiFlatPresets.ListSlot |
Modifier and Type | Field and Description |
---|---|
private GuiButton |
btnSelect |
private GuiTextField |
export |
private static java.util.List<GuiFlatPresets.LayerItem> |
FLAT_WORLD_PRESETS |
private GuiFlatPresets.ListSlot |
list |
private java.lang.String |
listText |
private GuiCreateFlatWorld |
parentScreen |
private java.lang.String |
presetsShare |
private java.lang.String |
presetsTitle |
allowUserInput, buttonList, fontRenderer, height, itemRender, keyHandled, labelList, mc, mouseHandled, selectedButton, width
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiFlatPresets(GuiCreateFlatWorld p_i46318_1_) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(GuiButton button) |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
void |
handleMouseInput() |
private boolean |
hasValidSelection() |
void |
initGui() |
protected void |
keyTyped(char typedChar,
int keyCode) |
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton) |
void |
onGuiClosed() |
private static void |
registerPreset(java.lang.String name,
Item icon,
Biome biome,
java.util.List<java.lang.String> features,
FlatLayerInfo... layers) |
private static void |
registerPreset(java.lang.String name,
Item icon,
int iconMetadata,
Biome biome,
java.util.List<java.lang.String> features,
FlatLayerInfo... layers) |
void |
updateButtonValidity() |
void |
updateScreen() |
addButton, confirmClicked, doesGuiPauseGame, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, getItemToolTip, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, isAltKeyDown, isCtrlKeyDown, isFocused, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, mouseClickMove, mouseReleased, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setFocused, setGuiSize, setText, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private static final java.util.List<GuiFlatPresets.LayerItem> FLAT_WORLD_PRESETS
private final GuiCreateFlatWorld parentScreen
private java.lang.String presetsTitle
private java.lang.String presetsShare
private java.lang.String listText
private GuiFlatPresets.ListSlot list
private GuiButton btnSelect
private GuiTextField export
public GuiFlatPresets(GuiCreateFlatWorld p_i46318_1_)
public void handleMouseInput() throws java.io.IOException
handleMouseInput
in class GuiScreen
java.io.IOException
public void onGuiClosed()
onGuiClosed
in class GuiScreen
protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws java.io.IOException
mouseClicked
in class GuiScreen
java.io.IOException
protected void keyTyped(char typedChar, int keyCode) throws java.io.IOException
protected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed
in class GuiScreen
java.io.IOException
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class GuiScreen
public void updateScreen()
updateScreen
in class GuiScreen
public void updateButtonValidity()
private boolean hasValidSelection()
private static void registerPreset(java.lang.String name, Item icon, Biome biome, java.util.List<java.lang.String> features, FlatLayerInfo... layers)
private static void registerPreset(java.lang.String name, Item icon, int iconMetadata, Biome biome, java.util.List<java.lang.String> features, FlatLayerInfo... layers)