类 EditWorldScreen
- java.lang.Object
-
- net.minecraft.client.gui.DrawableHelper
-
- net.minecraft.client.gui.AbstractParentElement
-
- net.minecraft.client.gui.screen.Screen
-
- net.minecraft.client.gui.screen.world.EditWorldScreen
-
- 所有已实现的接口:
Drawable,Element,ParentElement,TickableElement
@Environment(CLIENT) public class EditWorldScreen extends Screen
- Mappings:
Namespace Name official ecvintermediary net/minecraft/class_524named net/minecraft/client/gui/screen/world/EditWorldScreen
-
-
字段概要
字段 修饰符和类型 字段 说明 private BooleanConsumercallbackprivate static TextENTER_NAME_TEXTprivate static GsonGSONprivate TextFieldWidgetlevelNameTextFieldprivate static LoggerLOGGERprivate ButtonWidgetsaveButtonprivate LevelStorage.SessionstorageSession-
从类继承的字段 net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
-
从类继承的字段 net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
-
构造器概要
构造器 构造器 说明 EditWorldScreen(BooleanConsumer callback, LevelStorage.Session storageSession)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static booleanbackupLevel(LevelStorage.Session storageSession)private voidcommit()protected voidinit()Called when a screen should be initialized.static voidonBackupConfirm(LevelStorage storage, String levelName)voidonClose()voidremoved()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)voidresize(MinecraftClient client, int width, int height)voidtick()-
从类继承的方法 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, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
-
从类继承的方法 net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
-
从类继承的方法 net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, method_35719, method_35720, setZOffset
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.client.gui.Element
mouseMoved
-
从接口继承的方法 net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
-
-
-
字段详细资料
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official aLecv;a:Lorg/apache/logging/log4j/Logger;intermediary field_23776Lnet/minecraft/class_524;field_23776:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/gui/screen/world/EditWorldScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
-
GSON
private static final Gson GSON
- Mappings:
Namespace Name Mixin selector official bLecv;b:Lcom/google/gson/Gson;intermediary field_25481Lnet/minecraft/class_524;field_25481:Lcom/google/gson/Gson;named GSONLnet/minecraft/client/gui/screen/world/EditWorldScreen;GSON:Lcom/google/gson/Gson;
-
ENTER_NAME_TEXT
private static final Text ENTER_NAME_TEXT
- Mappings:
Namespace Name Mixin selector official cLecv;c:Lon;intermediary field_26603Lnet/minecraft/class_524;field_26603:Lnet/minecraft/class_2561;named ENTER_NAME_TEXTLnet/minecraft/client/gui/screen/world/EditWorldScreen;ENTER_NAME_TEXT:Lnet/minecraft/text/Text;
-
saveButton
private ButtonWidget saveButton
- Mappings:
Namespace Name Mixin selector official pLecv;p:Ldvw;intermediary field_3168Lnet/minecraft/class_524;field_3168:Lnet/minecraft/class_4185;named saveButtonLnet/minecraft/client/gui/screen/world/EditWorldScreen;saveButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
callback
private final BooleanConsumer callback
- Mappings:
Namespace Name Mixin selector official qLecv;q:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;intermediary field_3169Lnet/minecraft/class_524;field_3169:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;named callbackLnet/minecraft/client/gui/screen/world/EditWorldScreen;callback:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
-
levelNameTextField
private TextFieldWidget levelNameTextField
- Mappings:
Namespace Name Mixin selector official rLecv;r:Ldwe;intermediary field_3170Lnet/minecraft/class_524;field_3170:Lnet/minecraft/class_342;named levelNameTextFieldLnet/minecraft/client/gui/screen/world/EditWorldScreen;levelNameTextField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
storageSession
private final LevelStorage.Session storageSession
- Mappings:
Namespace Name Mixin selector official sLecv;s:Ldhb$a;intermediary field_23777Lnet/minecraft/class_524;field_23777:Lnet/minecraft/class_32$class_5143;named storageSessionLnet/minecraft/client/gui/screen/world/EditWorldScreen;storageSession:Lnet/minecraft/world/level/storage/LevelStorage$Session;
-
-
构造器详细资料
-
EditWorldScreen
public EditWorldScreen(BooleanConsumer callback, LevelStorage.Session storageSession)
- Mappings:
Namespace Name Mixin selector official <init>Lecv;<init>(Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Ldhb$a;)Vintermediary <init>Lnet/minecraft/class_524;<init>(Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lnet/minecraft/class_32$class_5143;)Vnamed <init>Lnet/minecraft/client/gui/screen/world/EditWorldScreen;<init>(Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lnet/minecraft/world/level/storage/LevelStorage$Session;)V
-
-
方法详细资料
-
tick
public void tick()
- 指定者:
tick在接口中TickableElement- 覆盖:
tick在类中Screen- Mappings:
Namespace Name Mixin selector official dLdwp;d()Vintermediary method_25393Lnet/minecraft/class_4893;method_25393()Vnamed tickLnet/minecraft/client/gui/screen/TickableElement;tick()V
-
init
protected void init()
Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
resize
public void resize(MinecraftClient client, int width, int height)
-
onClose
public void onClose()
-
removed
public void removed()
-
commit
private void commit()
- Mappings:
Namespace Name Mixin selector official hLecv;h()Vintermediary method_2691Lnet/minecraft/class_524;method_2691()Vnamed commitLnet/minecraft/client/gui/screen/world/EditWorldScreen;commit()V
-
onBackupConfirm
public static void onBackupConfirm(LevelStorage storage, String levelName)
- Mappings:
Namespace Name Mixin selector official aLecv;a(Ldhb;Ljava/lang/String;)Vintermediary method_29784Lnet/minecraft/class_524;method_29784(Lnet/minecraft/class_32;Ljava/lang/String;)Vnamed onBackupConfirmLnet/minecraft/client/gui/screen/world/EditWorldScreen;onBackupConfirm(Lnet/minecraft/world/level/storage/LevelStorage;Ljava/lang/String;)V
-
backupLevel
public static boolean backupLevel(LevelStorage.Session storageSession)
- Mappings:
Namespace Name Mixin selector official aLecv;a(Ldhb$a;)Zintermediary method_2701Lnet/minecraft/class_524;method_2701(Lnet/minecraft/class_32$class_5143;)Znamed backupLevelLnet/minecraft/client/gui/screen/world/EditWorldScreen;backupLevel(Lnet/minecraft/world/level/storage/LevelStorage$Session;)Z
-
render
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
- 指定者:
render在接口中Drawable- 覆盖:
render在类中Screen- Mappings:
Namespace Name Mixin selector official aLdws;a(Ldpi;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
-