Class WindowExtendedBuildTool

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 final class WindowExtendedBuildTool extends AbstractBlueprintManipulationWindow
BuildTool window.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Button Data.
    static enum 
    Type of button.

    Nested classes/interfaces inherited from class com.ldtteam.blockui.views.BOWindow

    com.ldtteam.blockui.views.BOWindow.WindowRenderType

    Nested classes/interfaces inherited from class com.ldtteam.blockui.UiRenderMacros

    com.ldtteam.blockui.UiRenderMacros.ResolvedBlit
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Predicate<Blueprint>
    Default block requirement check
    Currently selected blueprint

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

    Fields inherited from class com.ldtteam.blockui.UiRenderMacros

    HALF_BIAS
  • Constructor Summary

    Constructors
    Constructor
    Description
    WindowExtendedBuildTool(net.minecraft.core.BlockPos pos, int groundstyle)
     
    WindowExtendedBuildTool(net.minecraft.core.BlockPos pos, int groundstyle, @Nullable BiConsumer<WindowExtendedBuildTool,Blueprint> selectionCallback, @Nullable Predicate<Blueprint> availableBlueprintPredicate)
    Creates a window build tool.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    On clicking the red cancel button.
    protected void
    On clicking confirm
    protected void
    This is called when one of the placement options is clicked.
    protected void
    Hides as much additional GUI as possible while showing the placement menu
    void
    onButtonClicked(com.ldtteam.blockui.controls.Button button)
    Handle a button clicked event.
    void
     
    void
     
    void
    When the settings button is clicked.
    void
    updateAlternatives(Map<String,List<Blueprint>> bluePrintMapping, String depth)
    Update the alternative blueprint list.
    void
    updateBlueprints(List<Blueprint> inputBluePrints, String depth)
    Update the displayed blueprints.
    void
    updateFolders(List<StructurePacks.Category> inputCategories, String prevCat)
    Update the sub category structure.
    void
    updateLevels(List<Blueprint> blueprints, String depth, boolean hasAlternatives)
    Update the alternative blueprint list.

    Methods inherited from class com.ldtteam.structurize.client.gui.AbstractWindowSkeleton

    doNothing, registerButton, registerButton

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

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