Interface SettingsScreenOpener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface SettingsScreenOpener
An explicit UI handoff, compatible with an existing MOD's settings entry point.
-
Method Summary
Modifier and TypeMethodDescriptionvoidopen(net.minecraft.client.gui.screens.Screen parent) Called on the client thread only after a user chooses this page.
-
Method Details
-
open
void open(net.minecraft.client.gui.screens.Screen parent) Called on the client thread only after a user chooses this page. Display the settings screen and return promptly. Do not perform blocking I/O before displaying it. The child owns its draft, saving and cancellation, and must return to the supplied parent when closed. Opening or resizing must not silently save or apply preferences. The host restores the parent if opening throws or returns without displaying a screen.
-