Class WindowScan

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.WindowScan
All Implemented Interfaces:
com.ldtteam.blockui.controls.ButtonHandler, Consumer<com.ldtteam.blockui.controls.Button>

public class WindowScan extends AbstractWindowSkeleton
Window for finishing a scan.
  • Nested Class Summary

    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 int
    White color.

    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
    WindowScan(@NotNull ScanToolData data)
    Constructor for when the player wants to scan something.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addNeededResource(@Nullable net.minecraft.world.item.ItemStack res, boolean visible, net.minecraft.core.BlockPos pos)
    Add a new resource to the needed list.
    void
     
    void
     
    boolean
    onUnhandledKeyTyped(int ch, int key)
     
    void
     
    void
    removeAllNeededResource(net.minecraft.world.item.ItemStack res)
     
    void
     
    void
     

    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, 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, 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
  • Field Details

    • WHITE

      public static final int WHITE
      White color.
  • Constructor Details

    • WindowScan

      public WindowScan(@NotNull @NotNull ScanToolData data)
      Constructor for when the player wants to scan something.
      Parameters:
      data - the scan tool data
  • Method Details

    • onOpened

      public void onOpened()
      Overrides:
      onOpened in class com.ldtteam.blockui.views.BOWindow
    • onClosed

      public void onClosed()
      Overrides:
      onClosed in class com.ldtteam.blockui.views.BOWindow
    • onUpdate

      public void onUpdate()
      Overrides:
      onUpdate in class com.ldtteam.blockui.views.View
    • onUnhandledKeyTyped

      public boolean onUnhandledKeyTyped(int ch, int key)
      Overrides:
      onUnhandledKeyTyped in class com.ldtteam.blockui.views.BOWindow
    • addNeededResource

      public void addNeededResource(@Nullable @Nullable net.minecraft.world.item.ItemStack res, boolean visible, net.minecraft.core.BlockPos pos)
      Add a new resource to the needed list.
      Parameters:
      res - the resource.
      pos - the blockpos the resource is for
    • removeAllNeededResource

      public void removeAllNeededResource(net.minecraft.world.item.ItemStack res)
    • updateEntitylist

      public void updateEntitylist()
    • updateResourceList

      public void updateResourceList()