Package com.minecolonies.core.client.gui
Class WindowBuildBuilding
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.WindowBuildBuilding
- All Implemented Interfaces:
com.ldtteam.blockui.controls.ButtonHandler,IModuleContainer<IWindowModule>,Consumer<com.ldtteam.blockui.controls.Button>
BOWindow for selecting the style and confirming the resources.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ldtteam.blockui.views.BOWindow
com.ldtteam.blockui.views.BOWindow.WindowRenderTypeNested classes/interfaces inherited from class com.ldtteam.blockui.UiRenderMacros
com.ldtteam.blockui.UiRenderMacros.ResolvedBlit -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.neoforged.neoforge.common.util.TriPredicate<com.ldtteam.structurize.util.BlueprintPositionInfo, net.minecraft.core.BlockPos, com.ldtteam.structurize.placement.structure.IStructureHandler> Predicate defining things we don't want the builders to ever touch.Fields 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
ConstructorsConstructorDescriptionWindowBuildBuilding(IColonyView c, IBuildingView building) Constructor for the window when the player wants to hire a worker for a certain job. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNeededResource(@Nullable net.minecraft.world.item.ItemStack res, int amount) Add a new resource to the needed list.booleanCheck if this one can be upgraded.voidonOpened()Called when the GUI has been opened.voidonUpdate()voidMethods inherited from class com.minecolonies.core.client.gui.AbstractWindowSkeleton
close, doNothing, getClassType, getModules, onButtonClicked, onClosed, 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, blitSprite, blitSprite, drawEntity, drawLineRect, drawLineRect, drawLineRect, drawLineRectGradient, drawLineRectGradient, drawLineRectGradient, fill, fill, fillGradient, fillGradient, hLine, hLine, line, line, populateBlitTriangles, populateFillGradientTriangles, populateFillTriangles, resolveSprite, 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
-
DONT_TOUCH_PREDICATE
protected net.neoforged.neoforge.common.util.TriPredicate<com.ldtteam.structurize.util.BlueprintPositionInfo,net.minecraft.core.BlockPos, DONT_TOUCH_PREDICATEcom.ldtteam.structurize.placement.structure.IStructureHandler> Predicate defining things we don't want the builders to ever touch.
-
-
Constructor Details
-
WindowBuildBuilding
Constructor for the window when the player wants to hire a worker for a certain job.- Parameters:
c- the colony view.building- the building.
-
-
Method Details
-
canBeUpgraded
public boolean canBeUpgraded()Check if this one can be upgraded.- Returns:
- true if so.
-
addNeededResource
public void addNeededResource(@Nullable @Nullable net.minecraft.world.item.ItemStack res, int amount) Add a new resource to the needed list.- Parameters:
res- the resource.amount- the amount.
-
onOpened
public void onOpened()Called when the GUI has been opened. Will fill the fields and lists.- Overrides:
onOpenedin classAbstractWindowSkeleton
-
onUpdate
public void onUpdate()- Overrides:
onUpdatein classAbstractWindowSkeleton
-
updateResourceList
public void updateResourceList()
-