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>
Window for finishing a scan.
-
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
FieldsFields 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
ConstructorsConstructorDescriptionWindowScan(@NotNull ScanToolData data) Constructor for when the player wants to scan something. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNeededResource(@Nullable net.minecraft.world.item.ItemStack res, int amount) Add a new resource to the needed list.voidonClosed()voidonOpened()booleanonUnhandledKeyTyped(int ch, int key) voidonUpdate()voidvoidMethods 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, 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, 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
-
WHITE
public static final int WHITEWhite color.
-
-
Constructor Details
-
WindowScan
Constructor for when the player wants to scan something.- Parameters:
data- the scan tool data
-
-
Method Details
-
onOpened
public void onOpened()- Overrides:
onOpenedin classcom.ldtteam.blockui.views.BOWindow
-
onClosed
public void onClosed()- Overrides:
onClosedin classcom.ldtteam.blockui.views.BOWindow
-
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
-
addNeededResource
public void addNeededResource(@Nullable @Nullable net.minecraft.world.item.ItemStack res, int amount) Add a new resource to the needed list.- Parameters:
res- the resource.amount- the amount.
-
updateEntitylist
public void updateEntitylist() -
updateResourceList
public void updateResourceList()
-