Package net.minecraft.client.gui.screen
Class CustomizeFlatLevelScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.CustomizeFlatLevelScreen
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
,TickableElement
@Environment(CLIENT) public class CustomizeFlatLevelScreen extends Screen
- Mappings:
Namespace Name official dug
intermediary net/minecraft/class_413
named net/minecraft/client/gui/screen/CustomizeFlatLevelScreen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
CustomizeFlatLevelScreen.SuperflatLayersListWidget
-
Field Summary
Fields Modifier and Type Field Description private FlatChunkGeneratorConfig
config
private Consumer<FlatChunkGeneratorConfig>
field_24565
private Text
heightText
private CustomizeFlatLevelScreen.SuperflatLayersListWidget
layers
protected CreateWorldScreen
parent
private Text
tileText
private ButtonWidget
widgetButtonRemoveLayer
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description CustomizeFlatLevelScreen(CreateWorldScreen parent, Consumer<FlatChunkGeneratorConfig> consumer, FlatChunkGeneratorConfig config)
-
Method Summary
Modifier and Type Method Description FlatChunkGeneratorConfig
getConfig()
private boolean
hasLayerSelected()
protected void
init()
Called when a screen should be initialized.void
onClose()
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
void
setConfig(FlatChunkGeneratorConfig config)
private void
updateRemoveLayerButton()
Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
parent
- Mappings:
Namespace Name Mixin selector official a
Ldug;a:Ldyt;
intermediary field_2422
Lnet/minecraft/class_413;field_2422:Lnet/minecraft/class_525;
named parent
Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;parent:Lnet/minecraft/client/gui/screen/world/CreateWorldScreen;
-
field_24565
- Mappings:
Namespace Name Mixin selector official b
Ldug;b:Ljava/util/function/Consumer;
intermediary field_24565
Lnet/minecraft/class_413;field_24565:Ljava/util/function/Consumer;
named field_24565
Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;field_24565:Ljava/util/function/Consumer;
-
config
- Mappings:
Namespace Name Mixin selector official c
Ldug;c:Lcus;
intermediary field_2419
Lnet/minecraft/class_413;field_2419:Lnet/minecraft/class_3232;
named config
Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;config:Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;
-
tileText
- Mappings:
Namespace Name Mixin selector official p
Ldug;p:Loi;
intermediary field_2418
Lnet/minecraft/class_413;field_2418:Lnet/minecraft/class_2561;
named tileText
Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;tileText:Lnet/minecraft/text/Text;
-
heightText
- Mappings:
Namespace Name Mixin selector official q
Ldug;q:Loi;
intermediary field_2425
Lnet/minecraft/class_413;field_2425:Lnet/minecraft/class_2561;
named heightText
Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;heightText:Lnet/minecraft/text/Text;
-
layers
- Mappings:
Namespace Name Mixin selector official r
Ldug;r:Ldug$a;
intermediary field_2424
Lnet/minecraft/class_413;field_2424:Lnet/minecraft/class_413$class_4192;
named layers
Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;layers:Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen$SuperflatLayersListWidget;
-
widgetButtonRemoveLayer
- Mappings:
Namespace Name Mixin selector official s
Ldug;s:Ldru;
intermediary field_2421
Lnet/minecraft/class_413;field_2421:Lnet/minecraft/class_4185;
named widgetButtonRemoveLayer
Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;widgetButtonRemoveLayer:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
-
Constructor Details
-
CustomizeFlatLevelScreen
public CustomizeFlatLevelScreen(CreateWorldScreen parent, Consumer<FlatChunkGeneratorConfig> consumer, FlatChunkGeneratorConfig config)- Mappings:
Namespace Name Mixin selector official <init>
Ldug;<init>(Ldyt;Ljava/util/function/Consumer;Lcus;)V
intermediary <init>
Lnet/minecraft/class_413;<init>(Lnet/minecraft/class_525;Ljava/util/function/Consumer;Lnet/minecraft/class_3232;)V
named <init>
Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;<init>(Lnet/minecraft/client/gui/screen/world/CreateWorldScreen;Ljava/util/function/Consumer;Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;)V
-
-
Method Details
-
getConfig
- Mappings:
Namespace Name Mixin selector official h
Ldug;h()Lcus;
intermediary method_29055
Lnet/minecraft/class_413;method_29055()Lnet/minecraft/class_3232;
named getConfig
Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;getConfig()Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;
-
setConfig
- Mappings:
Namespace Name Mixin selector official a
Ldug;a(Lcus;)V
intermediary method_29054
Lnet/minecraft/class_413;method_29054(Lnet/minecraft/class_3232;)V
named setConfig
Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;setConfig(Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;)V
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
updateRemoveLayerButton
private void updateRemoveLayerButton()- Mappings:
Namespace Name Mixin selector official i
Ldug;i()V
intermediary method_2145
Lnet/minecraft/class_413;method_2145()V
named updateRemoveLayerButton
Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;updateRemoveLayerButton()V
-
hasLayerSelected
private boolean hasLayerSelected()- Mappings:
Namespace Name Mixin selector official k
Ldug;k()Z
intermediary method_2147
Lnet/minecraft/class_413;method_2147()Z
named hasLayerSelected
Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;hasLayerSelected()Z
-
onClose
public void onClose() -
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Ldsq;a(Ldlr;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-