Class AbstractModuleWindow<T extends IBuildingModuleView>

java.lang.Object
com.ldtteam.blockui.UiRenderMacros
com.ldtteam.blockui.Pane
com.ldtteam.blockui.views.View
com.ldtteam.blockui.views.BOWindow
All Implemented Interfaces:
com.ldtteam.blockui.controls.ButtonHandler, IModuleContainer<IWindowModule>, Consumer<com.ldtteam.blockui.controls.Button>
Direct Known Subclasses:
DOCraftingWindow, EnchanterStationModuleWindow, EntityListModuleWindow, ExpeditionLogModuleWindow, FarmFieldsModuleWindow, GraveyardManagementWindow, ItemListModuleWindow, MinimumStockModuleWindow, PlantationFieldsModuleWindow, RestaurantMenuModuleWindow, SettingsModuleWindow, SpecialAssignmentModuleWindow, ToolModuleWindow, UniversityModuleWindow, WarehouseOptionsModuleWindow, WindowBuilderResModule, WindowHutMinerModule, WindowHutRequestTaskModule, WindowListRecipes, WindowMineGuardModule, WindowSelectRequest, WindowStatsModule, WorkOrderModuleWindow

public abstract class AbstractModuleWindow<T extends IBuildingModuleView> extends AbstractBuildingWindow<IBuildingView>
Generic module window class. This creates the navigational menu.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.ldtteam.blockui.views.BOWindow

    com.ldtteam.blockui.views.BOWindow.WindowRenderType

    Nested classes/interfaces inherited from class com.ldtteam.blockui.UiRenderMacros

    com.ldtteam.blockui.UiRenderMacros.ResolvedBlit
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final T
    Module view.

    Fields inherited from class com.minecolonies.core.client.gui.AbstractBuildingWindow

    buildingView

    Fields inherited from class com.minecolonies.core.client.gui.AbstractWindowSkeleton

    buttonNextPage, buttonPrevPage, pageNum, switchView

    Fields inherited from class com.ldtteam.blockui.views.BOWindow

    DEFAULT_HEIGHT, DEFAULT_WIDTH, lightbox, screen, windowPausesGame, windowRenderType, xmlResourceLocation

    Fields inherited from class com.ldtteam.blockui.views.View

    children, padding

    Fields inherited from class com.ldtteam.blockui.Pane

    alignment, cursor, debugging, enabled, focus, height, hoverSource, id, lastClickedPane, mc, onHover, onHoverId, visible, wasCursorInPane, width, window, x, y

    Fields inherited from class com.ldtteam.blockui.UiRenderMacros

    HALF_BIAS
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractModuleWindow(com.ldtteam.blockui.views.BOWindow parent, T moduleView, net.minecraft.resources.ResourceLocation resource)
    Constructor for the window.
    AbstractModuleWindow(T moduleView, net.minecraft.resources.ResourceLocation resource)
    Constructor for the window.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    setHeader(@Nullable net.minecraft.network.chat.MutableComponent header)
    Update the header

    Methods inherited from class com.minecolonies.core.client.gui.AbstractBuildingWindow

    setPage, shouldRenderDefaultSidebar

    Methods inherited from class com.ldtteam.blockui.views.BOWindow

    doesWindowPauseGame, drawSelf, getRenderType, getScreen, getXmlResourceLocation, hasLightbox, loadParams, onKeyTyped, onMouseReleased, onUnhandledKeyTyped, open, openAsLayer

    Methods inherited from class com.ldtteam.blockui.views.View

    accumulatePosition, addChild, addChild, adjustChild, childIsVisible, click, drawHidden, drawSelfLast, findPaneByID, findPaneByType, findPaneForClick, getAccumulatedPosition, getChildren, getInteriorHeight, getInteriorWidth, mouseClickableEventHandler, mouseEventProcessor, mousePointableEventHandler, onMouseDrag, parseChildren, postAddChild, removeChild, rightClick, scrollInput, setSize, setWindow

    Methods inherited from class com.ldtteam.blockui.Pane

    canHandleClick, clearFocus, disable, draw, drawLast, enable, findFirstPaneByType, findPaneOfTypeByID, getAlignment, getCursor, getFocus, getHeight, getHoverPane, getID, getParent, getWidth, getWindow, getX, getY, handleClick, handleHover, handleRightClick, hide, isClickable, isEnabled, isFocus, isPointInPane, isVisible, moveBy, off, on, onFocus, onFocusLost, putInside, scissorsEnd, scissorsStart, setAlignment, setCursor, setEnabled, setFocus, setFocus, setHoverPane, setID, setParentView, setPosition, setVisible, shouldDraw, show, wasCursorInPane

    Methods inherited from class com.ldtteam.blockui.UiRenderMacros

    blit, blit, blit, blit, blitRepeatable, blitSprite, blitSprite, drawEntity, drawLineRect, drawLineRect, drawLineRect, drawLineRectGradient, drawLineRectGradient, drawLineRectGradient, fill, fill, fillGradient, fillGradient, hLine, hLine, line, line, populateBlitTriangles, populateFillGradientTriangles, populateFillTriangles, resolveSprite, vLine, vLine

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.ldtteam.blockui.controls.ButtonHandler

    accept

    Methods inherited from interface java.util.function.Consumer

    andThen
  • Field Details

  • Constructor Details

    • AbstractModuleWindow

      public AbstractModuleWindow(T moduleView, net.minecraft.resources.ResourceLocation resource)
      Constructor for the window.
      Parameters:
      moduleView - AbstractBuildingView.
      resource - window resource location.
    • AbstractModuleWindow

      public AbstractModuleWindow(com.ldtteam.blockui.views.BOWindow parent, T moduleView, net.minecraft.resources.ResourceLocation resource)
      Constructor for the window.
      Parameters:
      parent - the parent window.
      moduleView - AbstractBuildingView.
      resource - window resource location.
  • Method Details

    • setHeader

      protected void setHeader(@Nullable @Nullable net.minecraft.network.chat.MutableComponent header)
      Update the header
      Parameters:
      header - the header text.