Class WindowShapeTool
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
com.ldtteam.structurize.client.gui.WindowShapeTool
- All Implemented Interfaces:
com.ldtteam.blockui.controls.ButtonHandler,Consumer<com.ldtteam.blockui.controls.Button>
BuildTool window.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ldtteam.blockui.views.BOWindow
com.ldtteam.blockui.views.BOWindow.WindowRenderType -
Field Summary
Fields inherited from class com.ldtteam.structurize.client.gui.AbstractBlueprintManipulationWindow
groundstyle, settingsListFields 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, hoverSource, id, lastClickedPane, mc, onHover, onHoverId, parent, visible, wasCursorInPane, window, x, yFields inherited from class com.ldtteam.blockui.UiRenderMacros
HALF_BIAS -
Constructor Summary
ConstructorsConstructorDescriptionWindowShapeTool(@Nullable net.minecraft.core.BlockPos pos) Creates a window inputShape tool. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCancel the current structure.protected voidThis is called when one of the placement options is clicked.booleanDefines if a player has access to the creative-only controls.booleanonKeyTyped(char ch, int key) voidonOpened()Called when the window is opened.voidupdateBlock(net.minecraft.world.item.ItemStack stack, boolean isMain) Update the block from the replace block window.Methods inherited from class com.ldtteam.structurize.client.gui.AbstractBlueprintManipulationWindow
adjustToGroundOffset, confirmClicked, hideOtherGuiForPlacement, hidePlacementGui, initSettings, onUnhandledKeyTyped, onUpdate, settingsClicked, updatePlacementOptions, updateRotationStateMethods 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, 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, 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
accept
-
Constructor Details
-
WindowShapeTool
public WindowShapeTool(@Nullable @Nullable net.minecraft.core.BlockPos pos) Creates a window inputShape 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.
-
-
Method Details
-
handlePlacement
Description copied from class:AbstractBlueprintManipulationWindowThis is called when one of the placement options is clicked.- Specified by:
handlePlacementin classAbstractBlueprintManipulationWindow- Parameters:
type- the placement typeid- the custom id type.
-
cancelClicked
protected void cancelClicked()Cancel the current structure.- Specified by:
cancelClickedin classAbstractBlueprintManipulationWindow
-
onOpened
public void onOpened()Called when the window is opened.- Overrides:
onOpenedin classAbstractBlueprintManipulationWindow
-
updateBlock
public void updateBlock(net.minecraft.world.item.ItemStack stack, boolean isMain) Update the block from the replace block window.- Parameters:
stack- the stack to set.isMain- if primary or secondary.
-
isCreative
public boolean isCreative()Defines if a player has access to the creative-only controls.- Returns:
- true if so.
-
onKeyTyped
public boolean onKeyTyped(char ch, int key) - Overrides:
onKeyTypedin classcom.ldtteam.blockui.views.BOWindow
-