Class CreativeModeInventoryScreen
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<CreativeModeInventoryScreen.ItemPickerMenu>
net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen
- All Implemented Interfaces:
- ContainerEventHandler,- GuiEventListener,- Renderable,- TabOrderedElement,- MenuAccess<CreativeModeInventoryScreen.ItemPickerMenu>
public class CreativeModeInventoryScreen
extends EffectRenderingInventoryScreen<CreativeModeInventoryScreen.ItemPickerMenu>
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) static classstatic class(package private) static classNested classes/interfaces inherited from class net.minecraft.client.gui.screens.ScreenScreen.NarratableSearchResult
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) static final SimpleContainerprivate CreativeTabsScreenPageprivate static final Stringprivate Slotprivate final booleanprivate static final Stringprivate booleanprivate booleanprivate CreativeInventoryListenerprivate static final intprivate static final intprivate final List<CreativeTabsScreenPage>private static final ResourceLocationprivate static final intprivate static final ResourceLocationprivate static final intprivate booleanprivate floatprivate EditBoxprivate static final ResourceLocation[]private static final ResourceLocation[]private static CreativeModeTabprivate static final intprivate static final intprivate static final intprivate static final Componentprivate static final ResourceLocation[]private static final ResourceLocation[]Fields 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 SummaryConstructorsConstructorDescriptionCreativeModeInventoryScreen(Player p_259788_, FeatureFlagSet p_260074_, boolean p_259569_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate booleanbooleancharTyped(char p_98521_, int p_98522_) protected booleancheckTabClicked(CreativeModeTab p_98563_, double p_98564_, double p_98565_) protected booleancheckTabHovering(GuiGraphics p_282317_, CreativeModeTab p_282244_, int p_283469_, int p_283411_) voidprivate intgetTabX(CreativeModeTab p_260136_) private intgetTabY(CreativeModeTab p_260181_) getTooltipFromContainerItem(ItemStack p_281769_) static voidhandleHotbarLoadOrSave(Minecraft p_98599_, int p_98600_, boolean p_98601_, boolean p_98602_) protected booleanhasClickedOutside(double p_98541_, double p_98542_, int p_98543_, int p_98544_, int p_98545_) private booleanhasPermissions(Player p_259959_) protected voidinit()protected booleaninsideScrollbar(double p_98524_, double p_98525_) private booleanisCreativeSlot(Slot p_98554_) booleanbooleankeyPressed(int p_98547_, int p_98548_, int p_98549_) booleankeyReleased(int p_98612_, int p_98613_, int p_98614_) booleanmouseClicked(double p_98531_, double p_98532_, int p_98533_) booleanmouseDragged(double p_98535_, double p_98536_, int p_98537_, double p_98538_, double p_98539_) booleanmouseReleased(double p_98622_, double p_98623_, int p_98624_) booleanmouseScrolled(double p_98527_, double p_98528_, double p_98529_, double p_301127_) private voidrefreshCurrentTabContents(Collection<ItemStack> p_261591_) private voidvoidremoved()voidrender(GuiGraphics p_283000_, int p_281317_, int p_282770_, float p_281295_) protected voidrenderBg(GuiGraphics p_282663_, float p_282504_, int p_282089_, int p_282249_) protected voidrenderLabels(GuiGraphics p_283168_, int p_281774_, int p_281466_) protected voidrenderTabButton(GuiGraphics p_283590_, CreativeModeTab p_283489_) voidprivate voidselectTab(CreativeModeTab p_98561_) voidsetCurrentPage(CreativeTabsScreenPage currentPage) protected voidslotClicked(Slot p_98556_, int p_98557_, int p_98558_, ClickType p_98559_) private voidtryRefreshInvalidatedTabs(FeatureFlagSet p_259501_, boolean p_259713_, HolderLookup.Provider p_270898_) private voidupdateVisibleTags(String p_98620_) 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, getXSize, getYSize, isHovering, isPauseScreen, onClose, 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, 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.ContainerEventHandlergetChildAt, getCurrentFocusPath, isFocused, magicalSpecialHackyFocus, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenermouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElementgetTabOrderGroup
- 
Field Details- 
SCROLLER_SPRITE
- 
SCROLLER_DISABLED_SPRITE
- 
UNSELECTED_TOP_TABS
- 
SELECTED_TOP_TABS
- 
UNSELECTED_BOTTOM_TABS
- 
SELECTED_BOTTOM_TABS
- 
GUI_CREATIVE_TAB_PREFIX- See Also:
 
- 
CUSTOM_SLOT_LOCK- See Also:
 
- 
NUM_ROWSprivate static final int NUM_ROWS- See Also:
 
- 
NUM_COLSprivate static final int NUM_COLS- See Also:
 
- 
TAB_WIDTHprivate static final int TAB_WIDTH- See Also:
 
- 
TAB_HEIGHTprivate static final int TAB_HEIGHT- See Also:
 
- 
SCROLLER_WIDTHprivate static final int SCROLLER_WIDTH- See Also:
 
- 
SCROLLER_HEIGHTprivate static final int SCROLLER_HEIGHT- See Also:
 
- 
CONTAINER
- 
TRASH_SLOT_TOOLTIP
- 
TEXT_COLORprivate static final int TEXT_COLOR- See Also:
 
- 
selectedTab
- 
scrollOffsprivate float scrollOffs
- 
scrollingprivate boolean scrolling
- 
searchBox
- 
originalSlots
- 
destroyItemSlot
- 
listener
- 
ignoreTextInputprivate boolean ignoreTextInput
- 
hasClickedOutsideprivate boolean hasClickedOutside
- 
visibleTags
- 
displayOperatorCreativeTabprivate final boolean displayOperatorCreativeTab
- 
pages
- 
currentPage
 
- 
- 
Constructor Details- 
CreativeModeInventoryScreen
 
- 
- 
Method Details- 
hasPermissions
- 
tryRefreshInvalidatedTabsprivate void tryRefreshInvalidatedTabs(FeatureFlagSet p_259501_, boolean p_259713_, HolderLookup.Provider p_270898_) 
- 
refreshCurrentTabContents
- 
containerTickpublic void containerTick()- Overrides:
- containerTickin class- AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
 
- 
slotClicked- Overrides:
- slotClickedin class- AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
 
- 
isCreativeSlot
- 
initprotected void init()- Overrides:
- initin class- AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
 
- 
resize
- 
removedpublic void removed()- Overrides:
- removedin class- AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
 
- 
charTypedpublic boolean charTyped(char p_98521_, int p_98522_) 
- 
keyPressedpublic boolean keyPressed(int p_98547_, int p_98548_, int p_98549_) - Specified by:
- keyPressedin interface- ContainerEventHandler
- Specified by:
- keyPressedin interface- GuiEventListener
- Overrides:
- keyPressedin class- AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
 
- 
keyReleasedpublic boolean keyReleased(int p_98612_, int p_98613_, int p_98614_) 
- 
refreshSearchResultsprivate void refreshSearchResults()
- 
updateVisibleTags
- 
renderLabels- Overrides:
- renderLabelsin class- AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
 
- 
mouseClickedpublic boolean mouseClicked(double p_98531_, double p_98532_, int p_98533_) - Specified by:
- mouseClickedin interface- ContainerEventHandler
- Specified by:
- mouseClickedin interface- GuiEventListener
- Overrides:
- mouseClickedin class- AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
 
- 
mouseReleasedpublic boolean mouseReleased(double p_98622_, double p_98623_, int p_98624_) - Specified by:
- mouseReleasedin interface- ContainerEventHandler
- Specified by:
- mouseReleasedin interface- GuiEventListener
- Overrides:
- mouseReleasedin class- AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
 
- 
canScrollprivate boolean canScroll()
- 
selectTab
- 
mouseScrolledpublic boolean mouseScrolled(double p_98527_, double p_98528_, double p_98529_, double p_301127_) 
- 
hasClickedOutsideprotected boolean hasClickedOutside(double p_98541_, double p_98542_, int p_98543_, int p_98544_, int p_98545_) - Overrides:
- hasClickedOutsidein class- AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
 
- 
insideScrollbarprotected boolean insideScrollbar(double p_98524_, double p_98525_) 
- 
mouseDraggedpublic boolean mouseDragged(double p_98535_, double p_98536_, int p_98537_, double p_98538_, double p_98539_) - Specified by:
- mouseDraggedin interface- ContainerEventHandler
- Specified by:
- mouseDraggedin interface- GuiEventListener
- Overrides:
- mouseDraggedin class- AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
 
- 
render- Specified by:
- renderin interface- Renderable
- Overrides:
- renderin class- EffectRenderingInventoryScreen<CreativeModeInventoryScreen.ItemPickerMenu>
 
- 
getTooltipFromContainerItem- Overrides:
- getTooltipFromContainerItemin class- AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
 
- 
renderBg- Specified by:
- renderBgin class- AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
 
- 
getTabX
- 
getTabY
- 
checkTabClicked
- 
checkTabHoveringprotected boolean checkTabHovering(GuiGraphics p_282317_, CreativeModeTab p_282244_, int p_283469_, int p_283411_) 
- 
renderTabButton
- 
isInventoryOpenpublic boolean isInventoryOpen()
- 
handleHotbarLoadOrSavepublic static void handleHotbarLoadOrSave(Minecraft p_98599_, int p_98600_, boolean p_98601_, boolean p_98602_) 
- 
getCurrentPage
- 
setCurrentPage
 
-