net.minecraft.client.gui.screen.world

public class PresetsScreen

extends Screen

All mapped superinterfaces:

ParentElement, Element, Navigable, Drawable

net.minecraft.client.gui.screens.PresetFlatWorldScreen
net.minecraft.class_430
net.minecraft.client.gui.screen.world.PresetsScreen

Field summary

Modifier and TypeField
private static final Identifier
SLOT_SPRITE
field_45417
SLOT_TEXTURE
private static final org.slf4j.Logger
LOGGER
field_25043
LOGGER
private static final int
SLOT_BG_SIZE
field_32264
ICON_SIZE
private static final int
SLOT_STAT_HEIGHT
field_32265
BUTTON_HEIGHT
private static final int
SLOT_BG_X
field_32266
ICON_BACKGROUND_OFFSET_X
private static final int
SLOT_BG_Y
field_32267
ICON_BACKGROUND_OFFSET_Y
private static final int
SLOT_FG_X
field_32268
ICON_OFFSET_X
private static final int
SLOT_FG_Y
field_32269
ICON_OFFSET_Y
private static final RegistryKey<Biome>
DEFAULT_BIOME
field_27985
BIOME_KEY
public static final Text
UNKNOWN_PRESET
field_37908
UNKNOWN_PRESET_TEXT
private final CustomizeFlatLevelScreen
parent
field_2519
parent
private Text
shareText
field_2520
shareText
private Text
listText
field_2524
listText
private PresetsScreen$SuperflatPresetsListWidget
list
field_2521
listWidget
private ButtonWidget
selectButton
field_2525
selectPresetButton
private TextFieldWidget
export
field_2523
customPresetField
private FlatChunkGeneratorConfig
settings
field_25044
config

Constructor summary

ModifierConstructor
public (CustomizeFlatLevelScreen parent)

Method summary

Modifier and TypeMethod
private static FlatChunkGeneratorLayer
getLayerInfoFromString(HolderGetter<Block> blocks, String input, int firstFree)
method_29059(class_7871<class_2248> arg0, String arg1, int arg2)
parseLayerString(RegistryEntryLookup<Block> blockLookup, String layer, int layerStartHeight)
private static List<FlatChunkGeneratorLayer>
getLayersInfoFromString(HolderGetter<Block> blocks, String input)
method_29058(class_7871<class_2248> arg0, String arg1)
parsePresetLayersString(RegistryEntryLookup<Block> blockLookup, String layers)
public static FlatChunkGeneratorConfig
fromString(HolderGetter<Block> blocks, HolderGetter<Biome> biomes, HolderGetter<StructureSet> structureSets, HolderGetter<PlacedFeature> placedFeatures, String definition, FlatLevelGeneratorSettings settings)
method_29060(class_7871<class_2248> arg0, class_7871<class_1959> arg1, class_7871<class_7059> arg2, class_7871<class_6796> arg3, String arg4, class_3232 arg5)
parsePresetString(RegistryEntryLookup<Block> blockLookup, RegistryEntryLookup<Biome> biomeLookup, RegistryEntryLookup<StructureSet> structureSetLookup, RegistryEntryLookup<PlacedFeature> placedFeatureLookup, String preset, FlatChunkGeneratorConfig config)
private static String
save(FlatLevelGeneratorSettings settings)
method_29062(class_3232 arg0)
getGeneratorConfigString(FlatChunkGeneratorConfig config)
protected void
init()
method_25426()
init()
public boolean
mouseScrolled(double x, double y, double scrollX, double scrollY)
method_25401(double arg0, double arg1, double arg2, double arg3)
mouseScrolled(double arg0, double arg1, double arg2, double arg3)
public void
resize(int width, int height)
method_25410(int arg0, int arg1)
resize(int arg0, int arg1)
public void
onClose()
method_25419()
close()
public void
render(GuiGraphics graphics, int mouseX, int mouseY, float a)
method_25394(class_332 arg0, int arg1, int arg2, float arg3)
render(DrawContext arg0, int arg1, int arg2, float arg3)
public void
updateButtonValidity(boolean hasSelected)
method_20102(boolean arg0)
updateSelectButton(boolean hasSelected)
private void
lambda$init$4(Button arg0)
method_19846(class_4185 arg0)
method_19846(ButtonWidget button)
private void
lambda$init$3(HolderGetter arg0, HolderGetter arg1, HolderGetter arg2, HolderGetter arg3, Button arg4)
method_19847(class_7871 arg0, class_7871 arg1, class_7871 arg2, class_7871 arg3, class_4185 arg4)
method_19847(RegistryEntryLookup arg0, RegistryEntryLookup arg1, RegistryEntryLookup arg2, RegistryEntryLookup arg3, ButtonWidget arg4)
private static IllegalStateException
lambda$save$2()
method_40208()
method_40208()
private static RegistryEntry$Reference
lambda$fromString$1(String arg0, Holder$Reference arg1)
method_46741(String arg0, class_6880$class_6883 arg1)
method_46741(String arg0, RegistryEntry$Reference arg1)
private static RegistryKey
lambda$fromString$0(Identifier arg0)
method_29061(class_2960 arg0)
method_29061(Identifier biomeId)