Class InventoryScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T>
net.minecraft.client.gui.screens.inventory.EffectRenderingInventoryScreen<InventoryMenu>
net.minecraft.client.gui.screens.inventory.InventoryScreen
- All Implemented Interfaces:
- ContainerEventHandler,- GuiEventListener,- Renderable,- TabOrderedElement,- MenuAccess<InventoryMenu>,- RecipeUpdateListener
public class InventoryScreen
extends EffectRenderingInventoryScreen<InventoryMenu>
implements RecipeUpdateListener
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.client.gui.screens.ScreenScreen.NarratableSearchResult
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate booleanprivate final RecipeBookComponentprivate booleanprivate floatprivate floatFields inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreenhoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, SLOT_ITEM_BLIT_OFFSET, slotColor, titleLabelX, titleLabelY, topPosFields inherited from class net.minecraft.client.gui.screens.ScreenBACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListenerDOUBLE_CLICK_THRESHOLD_MS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidprotected booleanhasClickedOutside(double p_98845_, double p_98846_, int p_98847_, int p_98848_, int p_98849_) protected voidinit()protected booleanisHovering(int p_98858_, int p_98859_, int p_98860_, int p_98861_, double p_98862_, double p_98863_) booleanmouseClicked(double p_98841_, double p_98842_, int p_98843_) booleanmouseReleased(double p_98893_, double p_98894_, int p_98895_) voidvoidrender(GuiGraphics p_283246_, int p_98876_, int p_98877_, float p_98878_) protected voidrenderBg(GuiGraphics p_281500_, float p_281299_, int p_283481_, int p_281831_) static voidrenderEntityInInventory(GuiGraphics p_282665_, float p_300023_, float p_301239_, int p_283622_, org.joml.Vector3f p_298037_, org.joml.Quaternionf p_281880_, org.joml.Quaternionf p_282882_, LivingEntity p_282466_) static voidrenderEntityInInventoryFollowsMouse(GuiGraphics p_282802_, int p_275688_, int p_275245_, int p_275535_, int p_301381_, int p_299741_, float p_275604_, float p_275546_, float p_300682_, LivingEntity p_275689_) protected voidrenderLabels(GuiGraphics p_281654_, int p_283517_, int p_283464_) protected voidslotClicked(Slot p_98865_, int p_98866_, int p_98867_, ClickType p_98868_) Methods inherited from class net.minecraft.client.gui.screens.inventory.EffectRenderingInventoryScreencanSeeEffectsMethods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreencheckHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, isPauseScreen, keyPressed, mouseDragged, onClose, removed, renderBackground, renderSlotHighlight, renderSlotHighlight, renderTooltip, tickMethods inherited from class net.minecraft.client.gui.screens.Screenadded, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderDirtBackground, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandlergetFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandlercharTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenermouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElementgetTabOrderGroup
- 
Field Details- 
xMouseprivate float xMouse
- 
yMouseprivate float yMouse
- 
recipeBookComponent
- 
widthTooNarrowprivate boolean widthTooNarrow
- 
buttonClickedprivate boolean buttonClicked
 
- 
- 
Constructor Details- 
InventoryScreen
 
- 
- 
Method Details- 
containerTickpublic void containerTick()- Overrides:
- containerTickin class- AbstractContainerScreen<InventoryMenu>
 
- 
initprotected void init()- Overrides:
- initin class- AbstractContainerScreen<InventoryMenu>
 
- 
renderLabels- Overrides:
- renderLabelsin class- AbstractContainerScreen<InventoryMenu>
 
- 
render- Specified by:
- renderin interface- Renderable
- Overrides:
- renderin class- EffectRenderingInventoryScreen<InventoryMenu>
 
- 
renderBg- Specified by:
- renderBgin class- AbstractContainerScreen<InventoryMenu>
 
- 
renderEntityInInventoryFollowsMousepublic static void renderEntityInInventoryFollowsMouse(GuiGraphics p_282802_, int p_275688_, int p_275245_, int p_275535_, int p_301381_, int p_299741_, float p_275604_, float p_275546_, float p_300682_, LivingEntity p_275689_) 
- 
renderEntityInInventorypublic static void renderEntityInInventory(GuiGraphics p_282665_, float p_300023_, float p_301239_, int p_283622_, org.joml.Vector3f p_298037_, org.joml.Quaternionf p_281880_, @Nullable org.joml.Quaternionf p_282882_, LivingEntity p_282466_) 
- 
isHoveringprotected boolean isHovering(int p_98858_, int p_98859_, int p_98860_, int p_98861_, double p_98862_, double p_98863_) - Overrides:
- isHoveringin class- AbstractContainerScreen<InventoryMenu>
 
- 
mouseClickedpublic boolean mouseClicked(double p_98841_, double p_98842_, int p_98843_) - Specified by:
- mouseClickedin interface- ContainerEventHandler
- Specified by:
- mouseClickedin interface- GuiEventListener
- Overrides:
- mouseClickedin class- AbstractContainerScreen<InventoryMenu>
 
- 
mouseReleasedpublic boolean mouseReleased(double p_98893_, double p_98894_, int p_98895_) - Specified by:
- mouseReleasedin interface- ContainerEventHandler
- Specified by:
- mouseReleasedin interface- GuiEventListener
- Overrides:
- mouseReleasedin class- AbstractContainerScreen<InventoryMenu>
 
- 
hasClickedOutsideprotected boolean hasClickedOutside(double p_98845_, double p_98846_, int p_98847_, int p_98848_, int p_98849_) - Overrides:
- hasClickedOutsidein class- AbstractContainerScreen<InventoryMenu>
 
- 
slotClicked- Overrides:
- slotClickedin class- AbstractContainerScreen<InventoryMenu>
 
- 
recipesUpdatedpublic void recipesUpdated()- Specified by:
- recipesUpdatedin interface- RecipeUpdateListener
 
- 
getRecipeBookComponent- Specified by:
- getRecipeBookComponentin interface- RecipeUpdateListener
 
 
-