Class WindowSelectRes
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.WindowSelectRes
- All Implemented Interfaces:
com.ldtteam.blockui.controls.ButtonHandler,Consumer<com.ldtteam.blockui.controls.Button>
- Direct Known Subclasses:
WindowReplaceBlock
Window to select a resource from a given list of items
-
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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringfinal com.ldtteam.blockui.views.BOWindowThe original window to return tostatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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
ConstructorsConstructorDescriptionWindowSelectRes(@Nullable com.ldtteam.blockui.views.BOWindow origin, net.minecraft.network.chat.Component description, @Nullable net.minecraft.world.item.ItemStack previousItem, List<net.minecraft.world.item.ItemStack> allItems, BiConsumer<net.minecraft.world.item.ItemStack, Integer> resultAction) WindowSelectRes(@Nullable com.ldtteam.blockui.views.BOWindow origin, net.minecraft.network.chat.Component description, @Nullable net.minecraft.world.item.ItemStack previousItem, List<net.minecraft.world.item.ItemStack> allItems, BiConsumer<net.minecraft.world.item.ItemStack, Integer> resultAction, boolean secondaryConfirm, @Nullable net.minecraft.network.chat.Component selectCountText) WindowSelectRes(net.minecraft.resources.ResourceLocation xml, @Nullable com.ldtteam.blockui.views.BOWindow origin, net.minecraft.network.chat.Component description, @Nullable net.minecraft.world.item.ItemStack previousItem, List<net.minecraft.world.item.ItemStack> allItems, BiConsumer<net.minecraft.world.item.ItemStack, Integer> resultAction, boolean secondaryConfirm, @Nullable net.minecraft.network.chat.Component selectCountText) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcancelClicked(com.ldtteam.blockui.controls.Button button) Cancel clicked to close this window.voidonOpened()voidonSelectResource(net.minecraft.world.item.ItemStack stack, Integer count) Finish on selecting a resourcevoidonUpdate()protected voidsecondaryConfirm(com.ldtteam.blockui.controls.Button button) Done clicked to reopen the origin window.protected voidselectClicked(com.ldtteam.blockui.controls.Button button) Select button clicked.Methods 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, onKeyTyped, onMouseReleased, onUnhandledKeyTyped, 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, 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
-
RESOURCE_ICON_FROM
- See Also:
-
RESOURCE_NAME_FROM
- See Also:
-
MIDDLE_LABEL
- See Also:
-
RESOURCE_ICON_TO
- See Also:
-
RESOURCE_NAME_TO
- See Also:
-
COUNT
- See Also:
-
COUNT_TEXT
- See Also:
-
RESOURCE_LIST_VIEW
- See Also:
-
RESOURCE_LIST
- See Also:
-
RESOURCE_LIST_SELECT
- See Also:
-
DESC
- See Also:
-
RESOURCE_LIST_RESOURCE_NAME
- See Also:
-
RESOURCE_LIST_RESOURCE_ICON
- See Also:
-
origin
public final com.ldtteam.blockui.views.BOWindow originThe original window to return to
-
-
Constructor Details
-
WindowSelectRes
public WindowSelectRes(@Nullable @Nullable com.ldtteam.blockui.views.BOWindow origin, net.minecraft.network.chat.Component description, @Nullable @Nullable net.minecraft.world.item.ItemStack previousItem, List<net.minecraft.world.item.ItemStack> allItems, BiConsumer<net.minecraft.world.item.ItemStack, Integer> resultAction) -
WindowSelectRes
public WindowSelectRes(@Nullable @Nullable com.ldtteam.blockui.views.BOWindow origin, net.minecraft.network.chat.Component description, @Nullable @Nullable net.minecraft.world.item.ItemStack previousItem, List<net.minecraft.world.item.ItemStack> allItems, BiConsumer<net.minecraft.world.item.ItemStack, Integer> resultAction, boolean secondaryConfirm, @Nullable @Nullable net.minecraft.network.chat.Component selectCountText) -
WindowSelectRes
public WindowSelectRes(net.minecraft.resources.ResourceLocation xml, @Nullable @Nullable com.ldtteam.blockui.views.BOWindow origin, net.minecraft.network.chat.Component description, @Nullable @Nullable net.minecraft.world.item.ItemStack previousItem, List<net.minecraft.world.item.ItemStack> allItems, BiConsumer<net.minecraft.world.item.ItemStack, Integer> resultAction, boolean secondaryConfirm, @Nullable @Nullable net.minecraft.network.chat.Component selectCountText)
-
-
Method Details
-
onOpened
public void onOpened()- Overrides:
onOpenedin classcom.ldtteam.blockui.views.BOWindow
-
onUpdate
public void onUpdate()- Overrides:
onUpdatein classcom.ldtteam.blockui.views.View
-
secondaryConfirm
protected void secondaryConfirm(com.ldtteam.blockui.controls.Button button) Done clicked to reopen the origin window. -
onSelectResource
Finish on selecting a resource- Parameters:
stack-count-
-
cancelClicked
protected void cancelClicked(com.ldtteam.blockui.controls.Button button) Cancel clicked to close this window. -
selectClicked
protected void selectClicked(com.ldtteam.blockui.controls.Button button) Select button clicked.- Parameters:
button- the clicked button.
-