Class EditWorldScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.world.EditWorldScreen
- All Implemented Interfaces:
Drawable,Element,Navigable,ParentElement
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/world/EditWorldScreenintermediary net/minecraft/class_524official goe
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Textprivate static final Textprivate final BooleanConsumerprivate static final Textprivate static final Textprivate static final Textprivate static final Textprivate static final intprivate static final intprivate static final intprivate final DirectionalLayoutWidgetprivate static final Loggerprivate final TextFieldWidgetprivate static final Textprivate static final Textprivate static final Textprivate static final Textprivate final LevelStorage.SessionFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, field_60460, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, textRenderer, title, width -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEditWorldScreen(MinecraftClient client, LevelStorage.Session session, String levelName, BooleanConsumer callback) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanbackupLevel(LevelStorage.Session storageSession) voidclose()private voidstatic EditWorldScreencreate(MinecraftClient client, LevelStorage.Session session, BooleanConsumer callback) protected voidinit()Called when a screen should be initialized.booleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.protected voidvoidrender(DrawContext context, int mouseX, int mouseY, float deltaTicks) protected voidThis should be overridden with a call toScreen.setInitialFocus(Element)to set the element that is initially focused.Methods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, allowRotatingPanorama, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, deferSubtitles, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleBasicClickEvent, handleClickEvent, handleClickEvent, handleOpenUri, handleRunCommand, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keepOpenThroughPortal, method_73339, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, remove, removed, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setWidgetAlpha, shouldCloseOnEsc, shouldPause, showsStatusEffects, switchFocus, tick, updateNarratorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
getBorder, method_72784, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/gui/screen/world/EditWorldScreen;LOGGER:Lorg/slf4j/Logger;intermediary field_23776Lnet/minecraft/class_524;field_23776:Lorg/slf4j/Logger;official aLgoe;a:Lorg/slf4j/Logger;
-
ENTER_NAME_TEXT
- Mappings:
Namespace Name Mixin selector named ENTER_NAME_TEXTLnet/minecraft/client/gui/screen/world/EditWorldScreen;ENTER_NAME_TEXT:Lnet/minecraft/text/Text;intermediary field_26603Lnet/minecraft/class_524;field_26603:Lnet/minecraft/class_2561;official bLgoe;b:Lxv;
-
RESET_ICON_TEXT
- Mappings:
Namespace Name Mixin selector named RESET_ICON_TEXTLnet/minecraft/client/gui/screen/world/EditWorldScreen;RESET_ICON_TEXT:Lnet/minecraft/text/Text;intermediary field_46885Lnet/minecraft/class_524;field_46885:Lnet/minecraft/class_2561;official cLgoe;c:Lxv;
-
OPEN_FOLDER_TEXT
- Mappings:
Namespace Name Mixin selector named OPEN_FOLDER_TEXTLnet/minecraft/client/gui/screen/world/EditWorldScreen;OPEN_FOLDER_TEXT:Lnet/minecraft/text/Text;intermediary field_46886Lnet/minecraft/class_524;field_46886:Lnet/minecraft/class_2561;official dLgoe;d:Lxv;
-
BACKUP_TEXT
- Mappings:
Namespace Name Mixin selector named BACKUP_TEXTLnet/minecraft/client/gui/screen/world/EditWorldScreen;BACKUP_TEXT:Lnet/minecraft/text/Text;intermediary field_46887Lnet/minecraft/class_524;field_46887:Lnet/minecraft/class_2561;official eLgoe;e:Lxv;
-
BACKUP_FOLDER_TEXT
- Mappings:
Namespace Name Mixin selector named BACKUP_FOLDER_TEXTLnet/minecraft/client/gui/screen/world/EditWorldScreen;BACKUP_FOLDER_TEXT:Lnet/minecraft/text/Text;intermediary field_46888Lnet/minecraft/class_524;field_46888:Lnet/minecraft/class_2561;official fLgoe;f:Lxv;
-
OPTIMIZE_TEXT
- Mappings:
Namespace Name Mixin selector named OPTIMIZE_TEXTLnet/minecraft/client/gui/screen/world/EditWorldScreen;OPTIMIZE_TEXT:Lnet/minecraft/text/Text;intermediary field_46889Lnet/minecraft/class_524;field_46889:Lnet/minecraft/class_2561;official tLgoe;t:Lxv;
-
CONFIRM_TITLE_TEXT
- Mappings:
Namespace Name Mixin selector named CONFIRM_TITLE_TEXTLnet/minecraft/client/gui/screen/world/EditWorldScreen;CONFIRM_TITLE_TEXT:Lnet/minecraft/text/Text;intermediary field_46890Lnet/minecraft/class_524;field_46890:Lnet/minecraft/class_2561;official uLgoe;u:Lxv;
-
CONFIRM_DESCRIPTION_TEXT
- Mappings:
Namespace Name Mixin selector named CONFIRM_DESCRIPTION_TEXTLnet/minecraft/client/gui/screen/world/EditWorldScreen;CONFIRM_DESCRIPTION_TEXT:Lnet/minecraft/text/Text;intermediary field_46891Lnet/minecraft/class_524;field_46891:Lnet/minecraft/class_2561;official vLgoe;v:Lxv;
-
CONFIRM_PROCEED_TEXT
- Mappings:
Namespace Name Mixin selector named CONFIRM_PROCEED_TEXTLnet/minecraft/client/gui/screen/world/EditWorldScreen;CONFIRM_PROCEED_TEXT:Lnet/minecraft/text/Text;intermediary field_52853Lnet/minecraft/class_524;field_52853:Lnet/minecraft/class_2561;official wLgoe;w:Lxv;
-
SAVE_TEXT
- Mappings:
Namespace Name Mixin selector named SAVE_TEXTLnet/minecraft/client/gui/screen/world/EditWorldScreen;SAVE_TEXT:Lnet/minecraft/text/Text;intermediary field_46892Lnet/minecraft/class_524;field_46892:Lnet/minecraft/class_2561;official xLgoe;x:Lxv;
-
field_46893
private static final int field_46893- See Also:
- Mappings:
Namespace Name Mixin selector named field_46893Lnet/minecraft/client/gui/screen/world/EditWorldScreen;field_46893:Iintermediary field_46893Lnet/minecraft/class_524;field_46893:Iofficial yLgoe;y:I
-
field_46894
private static final int field_46894- See Also:
- Mappings:
Namespace Name Mixin selector named field_46894Lnet/minecraft/client/gui/screen/world/EditWorldScreen;field_46894:Iintermediary field_46894Lnet/minecraft/class_524;field_46894:Iofficial zLgoe;z:I
-
field_46895
private static final int field_46895- See Also:
- Mappings:
Namespace Name Mixin selector named field_46895Lnet/minecraft/client/gui/screen/world/EditWorldScreen;field_46895:Iintermediary field_46895Lnet/minecraft/class_524;field_46895:Iofficial ALgoe;A:I
-
layout
- Mappings:
Namespace Name Mixin selector named layoutLnet/minecraft/client/gui/screen/world/EditWorldScreen;layout:Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;intermediary field_46896Lnet/minecraft/class_524;field_46896:Lnet/minecraft/class_8667;official BLgoe;B:Lgfe;
-
callback
- Mappings:
Namespace Name Mixin selector named callbackLnet/minecraft/client/gui/screen/world/EditWorldScreen;callback:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;intermediary field_3169Lnet/minecraft/class_524;field_3169:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;official CLgoe;C:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
-
storageSession
- Mappings:
Namespace Name Mixin selector named storageSessionLnet/minecraft/client/gui/screen/world/EditWorldScreen;storageSession:Lnet/minecraft/world/level/storage/LevelStorage$Session;intermediary field_23777Lnet/minecraft/class_524;field_23777:Lnet/minecraft/class_32$class_5143;official DLgoe;D:Lfeq$c;
-
nameFieldWidget
- Mappings:
Namespace Name Mixin selector named nameFieldWidgetLnet/minecraft/client/gui/screen/world/EditWorldScreen;nameFieldWidget:Lnet/minecraft/client/gui/widget/TextFieldWidget;intermediary field_48397Lnet/minecraft/class_524;field_48397:Lnet/minecraft/class_342;official ELgoe;E:Lfzz;
-
-
Constructor Details
-
EditWorldScreen
private EditWorldScreen(MinecraftClient client, LevelStorage.Session session, String levelName, BooleanConsumer callback) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/world/EditWorldScreen;<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/world/level/storage/LevelStorage$Session;Ljava/lang/String;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;)Vintermediary <init>Lnet/minecraft/class_524;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_32$class_5143;Ljava/lang/String;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;)Vofficial <init>Lgoe;<init>(Lfwe;Lfeq$c;Ljava/lang/String;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;)V
-
-
Method Details
-
create
public static EditWorldScreen create(MinecraftClient client, LevelStorage.Session session, BooleanConsumer callback) throws IOException - Throws:
IOException- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/client/gui/screen/world/EditWorldScreen;create(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/world/level/storage/LevelStorage$Session;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;)Lnet/minecraft/client/gui/screen/world/EditWorldScreen;intermediary method_54599Lnet/minecraft/class_524;method_54599(Lnet/minecraft/class_310;Lnet/minecraft/class_32$class_5143;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;)Lnet/minecraft/class_524;official aLgoe;a(Lfwe;Lfeq$c;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;)Lgoe;
-
setInitialFocus
protected void setInitialFocus()This should be overridden with a call toScreen.setInitialFocus(Element)to set the element that is initially focused.- Overrides:
setInitialFocusin classScreen- Mappings:
Namespace Name Mixin selector named setInitialFocusLnet/minecraft/client/gui/screen/Screen;setInitialFocus()Vintermediary method_56131Lnet/minecraft/class_437;method_56131()Vofficial aJ_Lgih;aJ_()V
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
refreshWidgetPositions
protected void refreshWidgetPositions()- Overrides:
refreshWidgetPositionsin classScreen- Mappings:
Namespace Name Mixin selector named refreshWidgetPositionsLnet/minecraft/client/gui/screen/Screen;refreshWidgetPositions()Vintermediary method_48640Lnet/minecraft/class_437;method_48640()Vofficial cLgih;c()V
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classScreen- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Zofficial aLgcx;a(III)Z
-
close
public void close() -
commit
- Mappings:
Namespace Name Mixin selector named commitLnet/minecraft/client/gui/screen/world/EditWorldScreen;commit(Ljava/lang/String;)Vintermediary method_2691Lnet/minecraft/class_524;method_2691(Ljava/lang/String;)Vofficial aLgoe;a(Ljava/lang/String;)V
-
backupLevel
- Mappings:
Namespace Name Mixin selector named backupLevelLnet/minecraft/client/gui/screen/world/EditWorldScreen;backupLevel(Lnet/minecraft/world/level/storage/LevelStorage$Session;)Zintermediary method_2701Lnet/minecraft/class_524;method_2701(Lnet/minecraft/class_32$class_5143;)Zofficial aLgoe;a(Lfeq$c;)Z
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vofficial aLgau;a(Lfze;IIF)V
-