Class WindowShapeTool

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, Consumer<com.ldtteam.blockui.controls.Button>

public class WindowShapeTool extends AbstractBlueprintManipulationWindow
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, settingsList

    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, hoverSource, id, lastClickedPane, mc, onHover, onHoverId, parent, visible, wasCursorInPane, window, x, y

    Fields inherited from class com.ldtteam.blockui.UiRenderMacros

    HALF_BIAS
  • Constructor Summary

    Constructors
    Constructor
    Description
    WindowShapeTool(@Nullable net.minecraft.core.BlockPos pos)
    Creates a window inputShape tool.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Cancel the current structure.
    protected void
    This is called when one of the placement options is clicked.
    boolean
    Defines if a player has access to the creative-only controls.
    boolean
    onKeyTyped(char ch, int key)
     
    void
    Called when the window is opened.
    void
    updateBlock(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.AbstractWindowSkeleton

    doNothing, onButtonClicked, registerButton, registerButton

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

    close, doesWindowPauseGame, drawSelf, getRenderType, getScreen, getXmlResourceLocation, hasLightbox, loadParams, onClosed, onMouseReleased, 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, drawEntity, drawLineRect, drawLineRect, drawLineRect, drawLineRectGradient, drawLineRectGradient, drawLineRectGradient, fill, fill, fillGradient, fillGradient, hLine, hLine, line, line, populateBlitTriangles, populateFillGradientTriangles, populateFillTriangles, 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
  • 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

      protected void handlePlacement(BuildToolPlacementMessage.HandlerType type, String id)
      Description copied from class: AbstractBlueprintManipulationWindow
      This is called when one of the placement options is clicked.
      Specified by:
      handlePlacement in class AbstractBlueprintManipulationWindow
      Parameters:
      type - the placement type
      id - the custom id type.
    • cancelClicked

      protected void cancelClicked()
      Cancel the current structure.
      Specified by:
      cancelClicked in class AbstractBlueprintManipulationWindow
    • onOpened

      public void onOpened()
      Called when the window is opened.
      Overrides:
      onOpened in class AbstractBlueprintManipulationWindow
    • 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:
      onKeyTyped in class com.ldtteam.blockui.views.BOWindow