public abstract class GuiPropertyScreen
extends net.minecraft.client.gui.GuiScreen
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.client.gui.GuiButton |
buttonCancel |
protected net.minecraft.client.gui.GuiButton |
buttonConfirm |
protected static int |
GUI_ID_CANCEL |
protected static int |
GUI_ID_CONFIRM |
protected static java.lang.String |
GUI_LABEL_CANCEL |
protected static java.lang.String |
GUI_LABEL_CONFIRM |
protected GuiScreenCustomizeWorld |
parent |
protected net.minecraft.util.ResourceLocation |
registryKey |
protected int |
screenTitleColor |
protected int |
screenTitleHeight |
protected ModernBetaGeneratorSettings.Factory |
settings |
protected java.lang.String |
title |
| Constructor and Description |
|---|
GuiPropertyScreen(GuiScreenCustomizeWorld parent,
net.minecraft.util.ResourceLocation registryKey)
Constructs a new screen based on the registered
ScreenProperty. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformed(net.minecraft.client.gui.GuiButton guiButton) |
protected abstract void |
finalizeSettings()
Save any and all information modified in this screen to the
generator settings at once. |
void |
initGui() |
addButton, confirmClicked, doesGuiPauseGame, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawScreen, drawWorldBackground, getClipboardString, getItemToolTip, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isFocused, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, keyTyped, mouseClicked, mouseClickMove, mouseReleased, onGuiClosed, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setFocused, setGuiSize, setText, setWorldAndResolution, updateScreenprotected static final int GUI_ID_CONFIRM
protected static final int GUI_ID_CANCEL
protected static final java.lang.String GUI_LABEL_CONFIRM
protected static final java.lang.String GUI_LABEL_CANCEL
protected final GuiScreenCustomizeWorld parent
protected final net.minecraft.util.ResourceLocation registryKey
protected final ModernBetaGeneratorSettings.Factory settings
protected final java.lang.String title
protected net.minecraft.client.gui.GuiButton buttonConfirm
protected net.minecraft.client.gui.GuiButton buttonCancel
protected int screenTitleHeight
protected int screenTitleColor
public GuiPropertyScreen(GuiScreenCustomizeWorld parent, net.minecraft.util.ResourceLocation registryKey)
ScreenProperty.parent - The GuiScreenCustomizeWorld parent screenregistryKey - The ResourceLocation key of the registered ScreenProperty. Used for setting the screen title.public void initGui()
initGui in class net.minecraft.client.gui.GuiScreenprotected abstract void finalizeSettings()
generator settings at once.
This is called when the user selects the Confirm button.protected void actionPerformed(net.minecraft.client.gui.GuiButton guiButton)
throws java.io.IOException
actionPerformed in class net.minecraft.client.gui.GuiScreenjava.io.IOException