Interface IWindowWithLayoutModule

All Superinterfaces:
IWindowModule
All Known Implementing Classes:
RequestTreeWindowModule

public interface IWindowWithLayoutModule extends IWindowModule
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 Type
    Method
    Description
    @NotNull net.minecraft.resources.ResourceLocation
    Get the layout used for rendering.
    default void
    onLayoutMounted(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.