@Environment(value=CLIENT) public class PresetsScreen extends Screen
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
PresetsScreen.SuperflatPreset |
(package private) class |
PresetsScreen.SuperflatPresetsListWidget |
| Modifier and Type | Field and Description |
|---|---|
private TextFieldWidget |
customPresetField |
private Text |
listText |
private PresetsScreen.SuperflatPresetsListWidget |
listWidget |
private CustomizeFlatLevelScreen |
parent |
private static List<PresetsScreen.SuperflatPreset> |
presets |
private ButtonWidget |
selectPresetButton |
private Text |
shareText |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
PresetsScreen(CustomizeFlatLevelScreen parent) |
| Modifier and Type | Method and Description |
|---|---|
private static void |
addPreset(Text text,
ItemConvertible icon,
Biome biome,
List<String> structures,
FlatChunkGeneratorLayer[] layers) |
protected void |
init() |
boolean |
mouseScrolled(double mouseX,
double mouseY,
double amount) |
void |
onClose() |
void |
removed() |
void |
render(MatrixStack matrixStack,
int mouseY,
int int2,
float float2) |
void |
resize(MinecraftClient client,
int width,
int height) |
void |
tick() |
void |
updateSelectButton(boolean hasSelected) |
addButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawVerticalLine, fill, fillGradient, getZOffset, method_27534, method_27535, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, setInitialFocusmouseMovedprivate static final List<PresetsScreen.SuperflatPreset> presets
private final CustomizeFlatLevelScreen parent
private Text shareText
private Text listText
private PresetsScreen.SuperflatPresetsListWidget listWidget
private ButtonWidget selectPresetButton
private TextFieldWidget customPresetField
public PresetsScreen(CustomizeFlatLevelScreen parent)
public boolean mouseScrolled(double mouseX,
double mouseY,
double amount)
public void resize(MinecraftClient client, int width, int height)
public void render(MatrixStack matrixStack, int mouseY, int int2, float float2)
public void updateSelectButton(boolean hasSelected)
private static void addPreset(Text text, ItemConvertible icon, Biome biome, List<String> structures, FlatChunkGeneratorLayer[] layers)