Interface IWindowWithLayoutModule
- All Superinterfaces:
IWindowModule
- All Known Implementing Classes:
RequestTreeWindowModule
Extensible logic for windows, without having to use new base classes.
Additionally, this class requires you to implement a layout, which will be automatically constructed and injected into the window.
-
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.resources.ResourceLocationGet the layout used for rendering.default voidonLayoutMounted(com.ldtteam.blockui.Pane rootPane) Called after the layout is mounted to the parenting window.Methods inherited from interface com.minecolonies.core.client.gui.modules.IWindowModule
onButtonClicked, onClosed, onOpened, onUpdate
-
Method Details
-
onLayoutMounted
default void onLayoutMounted(com.ldtteam.blockui.Pane rootPane) Called after the layout is mounted to the parenting window.- Parameters:
rootPane- the root pane that was made from the layout.
-
getLayout
@NotNull @NotNull net.minecraft.resources.ResourceLocation getLayout()Get the layout used for rendering.- Returns:
- the id of the layout file.
-