类 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
-
- 所有已实现的接口:
Drawable,Element,ParentElement,TickableElement
@Environment(CLIENT) public class PresetsScreen extends Screen
- Mappings:
Namespace Name official dzdintermediary net/minecraft/class_430named net/minecraft/client/gui/screen/PresetsScreen
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 (专用程序包) static classPresetsScreen.SuperflatPreset(专用程序包) classPresetsScreen.SuperflatPresetsListWidget
-
字段概要
字段 修饰符和类型 字段 说明 private static RegistryKey<Biome>BIOME_KEYprivate FlatChunkGeneratorConfigconfigprivate TextFieldWidgetcustomPresetFieldprivate static intfield_32263private static intfield_32264private static intfield_32265private static intfield_32266private static intfield_32267private static intfield_32268private static intfield_32269private TextlistTextprivate PresetsScreen.SuperflatPresetsListWidgetlistWidgetprivate static LoggerLOGGERprivate CustomizeFlatLevelScreenparentprivate static List<PresetsScreen.SuperflatPreset>PRESETSprivate ButtonWidgetselectPresetButtonprivate TextshareText-
从类继承的字段 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
-
-
构造器概要
构造器 构造器 说明 PresetsScreen(CustomizeFlatLevelScreen parent)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 private static voidaddPreset(Text presetName, ItemConvertible icon, RegistryKey<Biome> presetBiome, List<StructureFeature<?>> structures, boolean generateStronghold, boolean generateFeatures, boolean generateLakes, FlatChunkGeneratorLayer[] layers)private static StringgetGeneratorConfigString(Registry<Biome> biomeRegistry, FlatChunkGeneratorConfig generatorConfig)protected voidinit()Called when a screen should be initialized.booleanmouseScrolled(double mouseX, double mouseY, double amount)Callback for when a mouse button scroll event has been captured.voidonClose()private static @Nullable FlatChunkGeneratorLayerparseLayerString(String layer, int layerStartHeight)Parse a string like"60*minecraft:stone"to aFlatChunkGeneratorLayer.private static List<FlatChunkGeneratorLayer>parsePresetLayersString(String layers)Parse a string like"minecraft:bedrock,3*minecraft:dirt,minecraft:grass_block"to a list ofFlatChunkGeneratorLayer.static FlatChunkGeneratorConfigparsePresetString(Registry<Biome> biomeRegistry, String preset, FlatChunkGeneratorConfig generatorConfig)voidremoved()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)voidresize(MinecraftClient client, int width, int height)voidtick()voidupdateSelectButton(boolean hasSelected)-
从类继承的方法 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, setInitialFocus
-
-
-
-
字段详细资料
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official aLdzd;a:Lorg/apache/logging/log4j/Logger;intermediary field_25043Lnet/minecraft/class_430;field_25043:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/gui/screen/PresetsScreen;LOGGER:Lorg/apache/logging/log4j/Logger;
-
field_32263
private static final int field_32263
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLdzd;b:Iintermediary field_32263Lnet/minecraft/class_430;field_32263:Inamed field_32263Lnet/minecraft/client/gui/screen/PresetsScreen;field_32263:I
-
field_32264
private static final int field_32264
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLdzd;c:Iintermediary field_32264Lnet/minecraft/class_430;field_32264:Inamed field_32264Lnet/minecraft/client/gui/screen/PresetsScreen;field_32264:I
-
field_32265
private static final int field_32265
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official pLdzd;p:Iintermediary field_32265Lnet/minecraft/class_430;field_32265:Inamed field_32265Lnet/minecraft/client/gui/screen/PresetsScreen;field_32265:I
-
field_32266
private static final int field_32266
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official qLdzd;q:Iintermediary field_32266Lnet/minecraft/class_430;field_32266:Inamed field_32266Lnet/minecraft/client/gui/screen/PresetsScreen;field_32266:I
-
field_32267
private static final int field_32267
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official rLdzd;r:Iintermediary field_32267Lnet/minecraft/class_430;field_32267:Inamed field_32267Lnet/minecraft/client/gui/screen/PresetsScreen;field_32267:I
-
field_32268
private static final int field_32268
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official sLdzd;s:Iintermediary field_32268Lnet/minecraft/class_430;field_32268:Inamed field_32268Lnet/minecraft/client/gui/screen/PresetsScreen;field_32268:I
-
field_32269
private static final int field_32269
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official tLdzd;t:Iintermediary field_32269Lnet/minecraft/class_430;field_32269:Inamed field_32269Lnet/minecraft/client/gui/screen/PresetsScreen;field_32269:I
-
PRESETS
private static final List<PresetsScreen.SuperflatPreset> PRESETS
- Mappings:
Namespace Name Mixin selector official uLdzd;u:Ljava/util/List;intermediary field_2518Lnet/minecraft/class_430;field_2518:Ljava/util/List;named PRESETSLnet/minecraft/client/gui/screen/PresetsScreen;PRESETS:Ljava/util/List;
-
BIOME_KEY
private static final RegistryKey<Biome> BIOME_KEY
- Mappings:
Namespace Name Mixin selector official vLdzd;v:Lwo;intermediary field_27985Lnet/minecraft/class_430;field_27985:Lnet/minecraft/class_5321;named BIOME_KEYLnet/minecraft/client/gui/screen/PresetsScreen;BIOME_KEY:Lnet/minecraft/util/registry/RegistryKey;
-
parent
private final CustomizeFlatLevelScreen parent
- Mappings:
Namespace Name Mixin selector official wLdzd;w:Ldyi;intermediary field_2519Lnet/minecraft/class_430;field_2519:Lnet/minecraft/class_413;named parentLnet/minecraft/client/gui/screen/PresetsScreen;parent:Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;
-
shareText
private Text shareText
- Mappings:
Namespace Name Mixin selector official xLdzd;x:Lon;intermediary field_2520Lnet/minecraft/class_430;field_2520:Lnet/minecraft/class_2561;named shareTextLnet/minecraft/client/gui/screen/PresetsScreen;shareText:Lnet/minecraft/text/Text;
-
listText
private Text listText
- Mappings:
Namespace Name Mixin selector official yLdzd;y:Lon;intermediary field_2524Lnet/minecraft/class_430;field_2524:Lnet/minecraft/class_2561;named listTextLnet/minecraft/client/gui/screen/PresetsScreen;listText:Lnet/minecraft/text/Text;
-
listWidget
private PresetsScreen.SuperflatPresetsListWidget listWidget
- Mappings:
Namespace Name Mixin selector official zLdzd;z:Ldzd$b;intermediary field_2521Lnet/minecraft/class_430;field_2521:Lnet/minecraft/class_430$class_4196;named listWidgetLnet/minecraft/client/gui/screen/PresetsScreen;listWidget:Lnet/minecraft/client/gui/screen/PresetsScreen$SuperflatPresetsListWidget;
-
selectPresetButton
private ButtonWidget selectPresetButton
- Mappings:
Namespace Name Mixin selector official ALdzd;A:Ldvw;intermediary field_2525Lnet/minecraft/class_430;field_2525:Lnet/minecraft/class_4185;named selectPresetButtonLnet/minecraft/client/gui/screen/PresetsScreen;selectPresetButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
customPresetField
private TextFieldWidget customPresetField
- Mappings:
Namespace Name Mixin selector official BLdzd;B:Ldwe;intermediary field_2523Lnet/minecraft/class_430;field_2523:Lnet/minecraft/class_342;named customPresetFieldLnet/minecraft/client/gui/screen/PresetsScreen;customPresetField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
config
private FlatChunkGeneratorConfig config
- Mappings:
Namespace Name Mixin selector official CLdzd;C:Lcxs;intermediary field_25044Lnet/minecraft/class_430;field_25044:Lnet/minecraft/class_3232;named configLnet/minecraft/client/gui/screen/PresetsScreen;config:Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;
-
-
构造器详细资料
-
PresetsScreen
public PresetsScreen(CustomizeFlatLevelScreen parent)
- Mappings:
Namespace Name Mixin selector official <init>Ldzd;<init>(Ldyi;)Vintermediary <init>Lnet/minecraft/class_430;<init>(Lnet/minecraft/class_413;)Vnamed <init>Lnet/minecraft/client/gui/screen/PresetsScreen;<init>(Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;)V
-
-
方法详细资料
-
parseLayerString
@Nullable private static @Nullable FlatChunkGeneratorLayer parseLayerString(String layer, int layerStartHeight)
Parse a string like"60*minecraft:stone"to aFlatChunkGeneratorLayer.- Mappings:
Namespace Name Mixin selector official aLdzd;a(Ljava/lang/String;I)Lcxr;intermediary method_29059Lnet/minecraft/class_430;method_29059(Ljava/lang/String;I)Lnet/minecraft/class_3229;named parseLayerStringLnet/minecraft/client/gui/screen/PresetsScreen;parseLayerString(Ljava/lang/String;I)Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorLayer;
-
parsePresetLayersString
private static List<FlatChunkGeneratorLayer> parsePresetLayersString(String layers)
Parse a string like"minecraft:bedrock,3*minecraft:dirt,minecraft:grass_block"to a list ofFlatChunkGeneratorLayer.- Mappings:
Namespace Name Mixin selector official bLdzd;b(Ljava/lang/String;)Ljava/util/List;intermediary method_29058Lnet/minecraft/class_430;method_29058(Ljava/lang/String;)Ljava/util/List;named parsePresetLayersStringLnet/minecraft/client/gui/screen/PresetsScreen;parsePresetLayersString(Ljava/lang/String;)Ljava/util/List;
-
parsePresetString
public static FlatChunkGeneratorConfig parsePresetString(Registry<Biome> biomeRegistry, String preset, FlatChunkGeneratorConfig generatorConfig)
- Mappings:
Namespace Name Mixin selector official aLdzd;a(Lgr;Ljava/lang/String;Lcxs;)Lcxs;intermediary method_29060Lnet/minecraft/class_430;method_29060(Lnet/minecraft/class_2378;Ljava/lang/String;Lnet/minecraft/class_3232;)Lnet/minecraft/class_3232;named parsePresetStringLnet/minecraft/client/gui/screen/PresetsScreen;parsePresetString(Lnet/minecraft/util/registry/Registry;Ljava/lang/String;Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;)Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;
-
getGeneratorConfigString
private static String getGeneratorConfigString(Registry<Biome> biomeRegistry, FlatChunkGeneratorConfig generatorConfig)
- Mappings:
Namespace Name Mixin selector official bLdzd;b(Lgr;Lcxs;)Ljava/lang/String;intermediary method_29062Lnet/minecraft/class_430;method_29062(Lnet/minecraft/class_2378;Lnet/minecraft/class_3232;)Ljava/lang/String;named getGeneratorConfigStringLnet/minecraft/client/gui/screen/PresetsScreen;getGeneratorConfigString(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.- 参数:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mouseamount- value is> 1if scrolled down,< 1if scrolled up- 返回:
trueto indicate that the event handling is successful/valid- 另请参阅:
Mouse.onMouseScroll(long, double, double)- Mappings:
Namespace Name Mixin selector official aLdwv;a(DDD)Zintermediary method_25401Lnet/minecraft/class_364;method_25401(DDD)Znamed mouseScrolledLnet/minecraft/client/gui/Element;mouseScrolled(DDD)Z
-
resize
public void resize(MinecraftClient client, int width, int height)
-
onClose
public void onClose()
-
removed
public void removed()
-
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
-
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
-
updateSelectButton
public void updateSelectButton(boolean hasSelected)
- Mappings:
Namespace Name Mixin selector official cLdzd;c(Z)Vintermediary method_20102Lnet/minecraft/class_430;method_20102(Z)Vnamed updateSelectButtonLnet/minecraft/client/gui/screen/PresetsScreen;updateSelectButton(Z)V
-
addPreset
private static void addPreset(Text presetName, ItemConvertible icon, RegistryKey<Biome> presetBiome, List<StructureFeature<?>> structures, boolean generateStronghold, boolean generateFeatures, boolean generateLakes, FlatChunkGeneratorLayer[] layers)
- Mappings:
Namespace Name Mixin selector official aLdzd;a(Lon;Lbvq;Lwo;Ljava/util/List;ZZZ[Lcxr;)Vintermediary method_2195Lnet/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;)Vnamed addPresetLnet/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
-
-