Package net.minecraft.client.gui.screen
Class PresetsScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.PresetsScreen
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
,TickableElement
@Environment(CLIENT) public class PresetsScreen extends Screen
- Mappings:
Namespace Name official dvb
intermediary net/minecraft/class_430
named net/minecraft/client/gui/screen/PresetsScreen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
PresetsScreen.SuperflatPreset
(package private) class
PresetsScreen.SuperflatPresetsListWidget
-
Field Summary
Fields Modifier and Type Field Description private static RegistryKey<Biome>
BIOME_KEY
private FlatChunkGeneratorConfig
config
private TextFieldWidget
customPresetField
private static Logger
field_25043
private Text
listText
private PresetsScreen.SuperflatPresetsListWidget
listWidget
private CustomizeFlatLevelScreen
parent
private static List<PresetsScreen.SuperflatPreset>
PRESETS
private ButtonWidget
selectPresetButton
private Text
shareText
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 PresetsScreen(CustomizeFlatLevelScreen parent)
-
Method Summary
Modifier and Type Method Description private static void
addPreset(Text text, ItemConvertible icon, RegistryKey<Biome> registryKey, List<StructureFeature<?>> structures, boolean bool, boolean bool2, boolean bool3, FlatChunkGeneratorLayer[] flatChunkGeneratorLayer)
protected void
init()
Called when a screen should be initialized.private static List<FlatChunkGeneratorLayer>
method_29058(String string)
private static FlatChunkGeneratorLayer
method_29059(String string, int int2)
static FlatChunkGeneratorConfig
method_29060(Registry<Biome> registry, String string, FlatChunkGeneratorConfig flatChunkGeneratorConfig)
private static String
method_29062(Registry<Biome> registry, FlatChunkGeneratorConfig flatChunkGeneratorConfig)
boolean
mouseScrolled(double mouseX, double mouseY, double amount)
Callback for when a mouse button scroll event has been captured.void
onClose()
void
removed()
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
void
resize(MinecraftClient client, int width, int height)
void
tick()
void
updateSelectButton(boolean hasSelected)
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, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, sendMessage, sendMessage, shouldCloseOnEsc, 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, setInitialFocus
-
Field Details
-
field_25043
- Mappings:
Namespace Name Mixin selector official a
Ldvb;a:Lorg/apache/logging/log4j/Logger;
intermediary field_25043
Lnet/minecraft/class_430;field_25043:Lorg/apache/logging/log4j/Logger;
named field_25043
Lnet/minecraft/client/gui/screen/PresetsScreen;field_25043:Lorg/apache/logging/log4j/Logger;
-
PRESETS
- Mappings:
Namespace Name Mixin selector official b
Ldvb;b:Ljava/util/List;
intermediary field_2518
Lnet/minecraft/class_430;field_2518:Ljava/util/List;
named PRESETS
Lnet/minecraft/client/gui/screen/PresetsScreen;PRESETS:Ljava/util/List;
-
BIOME_KEY
- Mappings:
Namespace Name Mixin selector official c
Ldvb;c:Lwa;
intermediary field_27985
Lnet/minecraft/class_430;field_27985:Lnet/minecraft/class_5321;
named BIOME_KEY
Lnet/minecraft/client/gui/screen/PresetsScreen;BIOME_KEY:Lnet/minecraft/util/registry/RegistryKey;
-
parent
- Mappings:
Namespace Name Mixin selector official p
Ldvb;p:Ldug;
intermediary field_2519
Lnet/minecraft/class_430;field_2519:Lnet/minecraft/class_413;
named parent
Lnet/minecraft/client/gui/screen/PresetsScreen;parent:Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;
-
listText
- Mappings:
Namespace Name Mixin selector official r
Ldvb;r:Loi;
intermediary field_2524
Lnet/minecraft/class_430;field_2524:Lnet/minecraft/class_2561;
named listText
Lnet/minecraft/client/gui/screen/PresetsScreen;listText:Lnet/minecraft/text/Text;
-
listWidget
- Mappings:
Namespace Name Mixin selector official s
Ldvb;s:Ldvb$b;
intermediary field_2521
Lnet/minecraft/class_430;field_2521:Lnet/minecraft/class_430$class_4196;
named listWidget
Lnet/minecraft/client/gui/screen/PresetsScreen;listWidget:Lnet/minecraft/client/gui/screen/PresetsScreen$SuperflatPresetsListWidget;
-
selectPresetButton
- Mappings:
Namespace Name Mixin selector official t
Ldvb;t:Ldru;
intermediary field_2525
Lnet/minecraft/class_430;field_2525:Lnet/minecraft/class_4185;
named selectPresetButton
Lnet/minecraft/client/gui/screen/PresetsScreen;selectPresetButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
customPresetField
- Mappings:
Namespace Name Mixin selector official u
Ldvb;u:Ldsc;
intermediary field_2523
Lnet/minecraft/class_430;field_2523:Lnet/minecraft/class_342;
named customPresetField
Lnet/minecraft/client/gui/screen/PresetsScreen;customPresetField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
config
- Mappings:
Namespace Name Mixin selector official v
Ldvb;v:Lcus;
intermediary field_25044
Lnet/minecraft/class_430;field_25044:Lnet/minecraft/class_3232;
named config
Lnet/minecraft/client/gui/screen/PresetsScreen;config:Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;
-
-
Constructor Details
-
PresetsScreen
- Mappings:
Namespace Name Mixin selector official <init>
Ldvb;<init>(Ldug;)V
intermediary <init>
Lnet/minecraft/class_430;<init>(Lnet/minecraft/class_413;)V
named <init>
Lnet/minecraft/client/gui/screen/PresetsScreen;<init>(Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;)V
-
-
Method Details
-
method_29059
- Mappings:
Namespace Name Mixin selector official a
Ldvb;a(Ljava/lang/String;I)Lcur;
intermediary method_29059
Lnet/minecraft/class_430;method_29059(Ljava/lang/String;I)Lnet/minecraft/class_3229;
named method_29059
Lnet/minecraft/client/gui/screen/PresetsScreen;method_29059(Ljava/lang/String;I)Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorLayer;
-
method_29058
- Mappings:
Namespace Name Mixin selector official b
Ldvb;b(Ljava/lang/String;)Ljava/util/List;
intermediary method_29058
Lnet/minecraft/class_430;method_29058(Ljava/lang/String;)Ljava/util/List;
named method_29058
Lnet/minecraft/client/gui/screen/PresetsScreen;method_29058(Ljava/lang/String;)Ljava/util/List;
-
method_29060
public static FlatChunkGeneratorConfig method_29060(Registry<Biome> registry, String string, FlatChunkGeneratorConfig flatChunkGeneratorConfig)- Mappings:
Namespace Name Mixin selector official a
Ldvb;a(Lgn;Ljava/lang/String;Lcus;)Lcus;
intermediary method_29060
Lnet/minecraft/class_430;method_29060(Lnet/minecraft/class_2378;Ljava/lang/String;Lnet/minecraft/class_3232;)Lnet/minecraft/class_3232;
named method_29060
Lnet/minecraft/client/gui/screen/PresetsScreen;method_29060(Lnet/minecraft/util/registry/Registry;Ljava/lang/String;Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;)Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;
-
method_29062
private static String method_29062(Registry<Biome> registry, FlatChunkGeneratorConfig flatChunkGeneratorConfig)- Mappings:
Namespace Name Mixin selector official b
Ldvb;b(Lgn;Lcus;)Ljava/lang/String;
intermediary method_29062
Lnet/minecraft/class_430;method_29062(Lnet/minecraft/class_2378;Lnet/minecraft/class_3232;)Ljava/lang/String;
named method_29062
Lnet/minecraft/client/gui/screen/PresetsScreen;method_29062(Lnet/minecraft/util/registry/Registry;Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;)Ljava/lang/String;
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double amount)Callback for when a mouse button scroll event has been captured.- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mouseamount
- value is> 1
if scrolled down,< 1
if scrolled up- Returns:
true
to indicate that the event handling is successful/valid- See Also:
Mouse.onMouseScroll(long, double, double)
- Mappings:
Namespace Name Mixin selector official a
Ldst;a(DDD)Z
intermediary method_25401
Lnet/minecraft/class_364;method_25401(DDD)Z
named mouseScrolled
Lnet/minecraft/client/gui/Element;mouseScrolled(DDD)Z
-
resize
-
onClose
public void onClose() -
removed
public void removed() -
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
-
tick
public void tick()- Specified by:
tick
in interfaceTickableElement
- Overrides:
tick
in classScreen
- Mappings:
Namespace Name Mixin selector official d
Ldsn;d()V
intermediary method_25393
Lnet/minecraft/class_4893;method_25393()V
named tick
Lnet/minecraft/client/gui/screen/TickableElement;tick()V
-
updateSelectButton
public void updateSelectButton(boolean hasSelected)- Mappings:
Namespace Name Mixin selector official c
Ldvb;c(Z)V
intermediary method_20102
Lnet/minecraft/class_430;method_20102(Z)V
named updateSelectButton
Lnet/minecraft/client/gui/screen/PresetsScreen;updateSelectButton(Z)V
-
addPreset
private static void addPreset(Text text, ItemConvertible icon, RegistryKey<Biome> registryKey, List<StructureFeature<?>> structures, boolean bool, boolean bool2, boolean bool3, FlatChunkGeneratorLayer[] flatChunkGeneratorLayer)- Mappings:
Namespace Name Mixin selector official a
Ldvb;a(Loi;Lbtu;Lwa;Ljava/util/List;ZZZ[Lcur;)V
intermediary method_2195
Lnet/minecraft/class_430;method_2195(Lnet/minecraft/class_2561;Lnet/minecraft/class_1935;Lnet/minecraft/class_5321;Ljava/util/List;ZZZ[Lnet/minecraft/class_3229;)V
named addPreset
Lnet/minecraft/client/gui/screen/PresetsScreen;addPreset(Lnet/minecraft/text/Text;Lnet/minecraft/item/ItemConvertible;Lnet/minecraft/util/registry/RegistryKey;Ljava/util/List;ZZZ[Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorLayer;)V
-