Class WindowColonyMap
java.lang.Object
com.ldtteam.blockui.UiRenderMacros
com.ldtteam.blockui.Pane
com.ldtteam.blockui.views.View
com.ldtteam.blockui.views.BOWindow
com.minecolonies.core.client.gui.AbstractWindowSkeleton
com.minecolonies.core.client.gui.map.WindowColonyMap
- All Implemented Interfaces:
com.ldtteam.blockui.controls.ButtonHandler,IModuleContainer<IWindowModule>,Consumer<com.ldtteam.blockui.controls.Button>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassHolds information about the map decorations that may be associated with each building.Nested classes/interfaces inherited from class com.ldtteam.blockui.views.BOWindow
com.ldtteam.blockui.views.BOWindow.WindowRenderType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic List<ColonyListMessage.ColonyInfo>List of known coloniesstatic final intFields inherited from class com.minecolonies.core.client.gui.AbstractWindowSkeleton
buttonNextPage, buttonPrevPage, pageNum, switchViewFields inherited from class com.ldtteam.blockui.views.BOWindow
DEFAULT_HEIGHT, DEFAULT_WIDTH, lightbox, screen, windowPausesGame, windowRenderType, xmlResourceLocationFields inherited from class com.ldtteam.blockui.views.View
children, paddingFields inherited from class com.ldtteam.blockui.Pane
alignment, cursor, debugging, enabled, focus, height, hoverSource, id, lastClickedPane, mc, onHover, onHoverId, visible, wasCursorInPane, width, window, x, yFields inherited from class com.ldtteam.blockui.UiRenderMacros
HALF_BIAS -
Constructor Summary
ConstructorsConstructorDescriptionWindowColonyMap(boolean atTownHall, IBuildingView building) Constructor for the skeleton class of the windows. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList<IRequest<?>>getPlayerResolvedRequestsForBuilding(IBuildingView buildingView) Retrieves the player resolved requests that match with a specified building view.voidonClosed()voidonUpdate()static voidsetColonies(List<ColonyListMessage.ColonyInfo> colonyInfo) Set the known colonies with minimal infoMethods inherited from class com.minecolonies.core.client.gui.AbstractWindowSkeleton
close, doNothing, getClassType, getModules, onButtonClicked, onOpened, registerButton, registerButton, registerLayoutModule, registerModule, setPageMethods inherited from class com.ldtteam.blockui.views.BOWindow
doesWindowPauseGame, drawSelf, getRenderType, getScreen, getXmlResourceLocation, hasLightbox, loadParams, onKeyTyped, onMouseReleased, onUnhandledKeyTyped, open, openAsLayerMethods 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, setWindowMethods 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, wasCursorInPaneMethods inherited from class com.ldtteam.blockui.UiRenderMacros
blit, blit, blit, blit, blitRepeatable, drawEntity, drawLineRect, drawLineRect, drawLineRect, drawLineRectGradient, drawLineRectGradient, drawLineRectGradient, fill, fill, fillGradient, fillGradient, hLine, hLine, line, line, populateBlitTriangles, populateFillGradientTriangles, populateFillTriangles, vLine, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.ldtteam.blockui.controls.ButtonHandler
acceptMethods inherited from interface com.minecolonies.api.colony.modules.IModuleContainer
getFirstModuleOccurance, getModule, getModule, getModule, getModuleMatching, getModules, getModules, getModules, getModulesByType, hasModule, hasModule, hasModule
-
Field Details
-
HIGHLIGHT_RANGE
public static final int HIGHLIGHT_RANGE- See Also:
-
colonies
List of known colonies
-
-
Constructor Details
-
WindowColonyMap
Constructor for the skeleton class of the windows.- Parameters:
building- The building the info window is for.
-
-
Method Details
-
setColonies
Set the known colonies with minimal info- Parameters:
colonyInfo-
-
onUpdate
public void onUpdate()- Overrides:
onUpdatein classAbstractWindowSkeleton
-
onClosed
public void onClosed()- Overrides:
onClosedin classAbstractWindowSkeleton
-
getPlayerResolvedRequestsForBuilding
public com.google.common.collect.ImmutableList<IRequest<?>> getPlayerResolvedRequestsForBuilding(IBuildingView buildingView) Retrieves the player resolved requests that match with a specified building view.- Parameters:
buildingView- the building view to match requests against- Returns:
- an immutable list of the player resolved requests for the building, or an empty list if the building view or colony is null or if there is no request manager or player resolver
-