Class AbstractBlueprintManipulationWindow
java.lang.Object
com.ldtteam.blockui.UiRenderMacros
com.ldtteam.blockui.Pane
com.ldtteam.blockui.views.View
com.ldtteam.blockui.views.BOWindow
com.ldtteam.structurize.client.gui.AbstractWindowSkeleton
com.ldtteam.structurize.client.gui.AbstractBlueprintManipulationWindow
- All Implemented Interfaces:
com.ldtteam.blockui.controls.ButtonHandler,Consumer<com.ldtteam.blockui.controls.Button>
- Direct Known Subclasses:
WindowExtendedBuildTool,WindowShapeTool
BuildTool window.
-
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 intGround style of the caller.protected com.ldtteam.blockui.views.ScrollingListSettings scrolling list.Fields 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, parent, visible, wasCursorInPane, width, window, x, yFields inherited from class com.ldtteam.blockui.UiRenderMacros
HALF_BIAS -
Constructor Summary
ConstructorsConstructorDescriptionAbstractBlueprintManipulationWindow(@NotNull String resourceId, @Nullable net.minecraft.core.BlockPos pos, int groundstyle, String blueprintId) Creates a window build tool. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDetects the intended ground level via tag and offsets the blueprint accordinglyprotected abstract voidOn clicking the red cancel button.protected voidOn clicking confirm for placement.protected abstract voidThis is called when one of the placement options is clicked.protected voidHides as much additional GUI as possible while showing the placement menuprotected voidHides the placement menu (call from handlePlacement or similar)protected voidvoidonOpened()booleanonUnhandledKeyTyped(int ch, int key) voidonUpdate()protected voidWhen the settings button is clicked.voidUpdate the list of placement options.protected voidIndicate the current orientation stateMethods inherited from class com.ldtteam.structurize.client.gui.AbstractWindowSkeleton
doNothing, onButtonClicked, registerButton, registerButtonMethods inherited from class com.ldtteam.blockui.views.BOWindow
close, doesWindowPauseGame, drawSelf, getRenderType, getScreen, getXmlResourceLocation, hasLightbox, loadParams, onClosed, onKeyTyped, onMouseReleased, 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
accept
-
Field Details
-
settingsList
protected com.ldtteam.blockui.views.ScrollingList settingsListSettings scrolling list. -
groundstyle
protected int groundstyleGround style of the caller.
-
-
Constructor Details
-
AbstractBlueprintManipulationWindow
public AbstractBlueprintManipulationWindow(@NotNull @NotNull String resourceId, @Nullable @Nullable net.minecraft.core.BlockPos pos, int groundstyle, String blueprintId) Creates a window build tool. This requires X, Y and Z coordinates. If a structure is active, recalculates the X Y Z with offset. Otherwise the given parameters are used.- Parameters:
pos- coordinate.groundstyle- one of the GROUNDSTYLE_ values.
-
-
Method Details
-
onOpened
public void onOpened()- Overrides:
onOpenedin classcom.ldtteam.blockui.views.BOWindow
-
cancelClicked
protected abstract void cancelClicked()On clicking the red cancel button. -
confirmClicked
protected void confirmClicked()On clicking confirm for placement. -
handlePlacement
This is called when one of the placement options is clicked.- Parameters:
type- the placement typeid- the custom id type.
-
hideOtherGuiForPlacement
protected void hideOtherGuiForPlacement()Hides as much additional GUI as possible while showing the placement menu -
hidePlacementGui
protected void hidePlacementGui()Hides the placement menu (call from handlePlacement or similar) -
updatePlacementOptions
public void updatePlacementOptions()Update the list of placement options. -
onUpdate
public void onUpdate()- Overrides:
onUpdatein classcom.ldtteam.blockui.views.View
-
onUnhandledKeyTyped
public boolean onUnhandledKeyTyped(int ch, int key) - Overrides:
onUnhandledKeyTypedin classcom.ldtteam.blockui.views.BOWindow
-
settingsClicked
protected void settingsClicked()When the settings button is clicked. Open settings window. -
initSettings
protected void initSettings() -
updateRotationState
protected void updateRotationState()Indicate the current orientation state -
adjustToGroundOffset
protected void adjustToGroundOffset()Detects the intended ground level via tag and offsets the blueprint accordingly
-