@Environment(value=CLIENT) public class EditWorldScreen extends Screen
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.booleans.BooleanConsumer |
callback |
private static Text |
ENTER_NAME_TEXT |
private LevelStorage.Session |
field_23777 |
private static Gson |
GSON |
private TextFieldWidget |
levelNameTextField |
private static Logger |
LOGGER |
private ButtonWidget |
saveButton |
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
EditWorldScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer callback,
LevelStorage.Session session) |
Modifier and Type | Method and Description |
---|---|
static boolean |
backupLevel(LevelStorage.Session session) |
private void |
commit() |
protected void |
init()
Called when a screen should be initialized.
|
static void |
method_29784(LevelStorage levelStorage,
String string) |
void |
onClose() |
void |
removed() |
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
void |
resize(MinecraftClient client,
int width,
int height) |
void |
tick() |
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, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
mouseMoved
private static final Logger LOGGER
private static final Gson GSON
private static final Text ENTER_NAME_TEXT
private ButtonWidget saveButton
private final it.unimi.dsi.fastutil.booleans.BooleanConsumer callback
private TextFieldWidget levelNameTextField
private final LevelStorage.Session field_23777
public EditWorldScreen(it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, LevelStorage.Session session)
public void tick()
tick
in interface TickableElement
tick
in class Screen
protected void init()
This method is called when this screen is opened
or resized.
public void resize(MinecraftClient client, int width, int height)
private void commit()
public static void method_29784(LevelStorage levelStorage, String string)
public static boolean backupLevel(LevelStorage.Session session)
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)