Class UnionInventoryScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Renderable, net.minecraft.client.gui.components.TabOrderedElement, net.minecraft.client.gui.screens.inventory.MenuAccess<UnionMenu>, net.minecraft.client.gui.screens.recipebook.RecipeUpdateListener
public class UnionInventoryScreen
extends net.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen<UnionMenu>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult -
Field Summary
Fields inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
BACKGROUND_TEXTURE_HEIGHT, BACKGROUND_TEXTURE_WIDTH, DEFAULT_IMAGE_HEIGHT, DEFAULT_IMAGE_WIDTH, hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, titleLabelX, titleLabelY, topPosFields inherited from class net.minecraft.client.gui.screens.Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
ConstructorsConstructorDescriptionUnionInventoryScreen(UnionMenu container, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidextractBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) static voidextractEntityInInventoryFollowsMouse(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x0, int y0, int x1, int y1, int size, float offsetY, float mouseX, float mouseY, net.minecraft.world.entity.LivingEntity entity) protected voidextractLabels(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int xm, int ym) voidextractRenderState(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) protected net.minecraft.client.gui.navigation.ScreenPositionprotected voidinit()protected booleanbooleankeyPressed(net.minecraft.client.input.KeyEvent keyEvent) booleanmouseReleased(net.minecraft.client.input.MouseButtonEvent event) protected voidbooleanMethods inherited from class net.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen
charTyped, extractSlots, fillGhostRecipe, hasClickedOutside, isHovering, mouseClicked, mouseDragged, recipesUpdated, slotClickedMethods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
addItemSlotMouseAction, checkHotbarKeyPressed, extractCarriedItem, extractContents, extractSlot, extractTooltip, getGuiLeft, getGuiTop, getMenu, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, isInGameUi, isPauseScreen, mouseScrolled, onClose, onMouseClickAction, removed, tickMethods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isMouseOver, isValidCharacterForName, onFilesDrop, rebuildWidgets, removeWidget, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
UnionInventoryScreen
public UnionInventoryScreen(UnionMenu container, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.chat.Component title)
-
-
Method Details
-
containerTick
public void containerTick()- Overrides:
containerTickin classnet.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen<UnionMenu>
-
init
protected void init()- Overrides:
initin classnet.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen<UnionMenu>
-
getRecipeBookButtonPosition
protected net.minecraft.client.gui.navigation.ScreenPosition getRecipeBookButtonPosition()- Specified by:
getRecipeBookButtonPositionin classnet.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen<UnionMenu>
-
onRecipeBookButtonClick
protected void onRecipeBookButtonClick()- Overrides:
onRecipeBookButtonClickin classnet.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen<UnionMenu>
-
extractLabels
protected void extractLabels(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int xm, int ym) - Overrides:
extractLabelsin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<UnionMenu>
-
extractRenderState
public void extractRenderState(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) - Specified by:
extractRenderStatein interfacenet.minecraft.client.gui.components.Renderable- Overrides:
extractRenderStatein classnet.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen<UnionMenu>
-
showsActiveEffects
public boolean showsActiveEffects()- Overrides:
showsActiveEffectsin classnet.minecraft.client.gui.screens.Screen
-
isBiggerResultSlot
protected boolean isBiggerResultSlot()- Overrides:
isBiggerResultSlotin classnet.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen<UnionMenu>
-
extractBackground
public void extractBackground(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) - Overrides:
extractBackgroundin classnet.minecraft.client.gui.screens.Screen
-
extractEntityInInventoryFollowsMouse
public static void extractEntityInInventoryFollowsMouse(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int x0, int y0, int x1, int y1, int size, float offsetY, float mouseX, float mouseY, net.minecraft.world.entity.LivingEntity entity) -
mouseReleased
public boolean mouseReleased(net.minecraft.client.input.MouseButtonEvent event) - Specified by:
mouseReleasedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseReleasedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
mouseReleasedin classnet.minecraft.client.gui.screens.inventory.AbstractContainerScreen<UnionMenu>
-
keyPressed
public boolean keyPressed(net.minecraft.client.input.KeyEvent keyEvent) - Specified by:
keyPressedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
keyPressedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
keyPressedin classnet.minecraft.client.gui.screens.inventory.AbstractRecipeBookScreen<UnionMenu>
-