类 CreativeModeInventoryScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
,MenuAccess<CreativeModeInventoryScreen.ItemPickerMenu>
public class CreativeModeInventoryScreen
extends AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static class
static class
(专用程序包) static class
从类继承的嵌套类/接口 net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
字段概要
字段修饰符和类型字段说明(专用程序包) static final SimpleContainer
private CreativeTabsScreenPage
private Slot
private final boolean
private final EffectsInInventory
private boolean
private boolean
private CreativeInventoryListener
private static final int
private static final int
private final List
<CreativeTabsScreenPage> private static final ResourceLocation
private static final int
private static final ResourceLocation
private static final int
private boolean
private float
private EditBox
private static final ResourceLocation[]
private static final ResourceLocation[]
private static CreativeModeTab
private static final int
private static final int
private static final int
private static final Component
private static final ResourceLocation[]
private static final ResourceLocation[]
从类继承的字段 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
BACKGROUND_TEXTURE_HEIGHT, BACKGROUND_TEXTURE_WIDTH, hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, SLOT_ITEM_BLIT_OFFSET, titleLabelX, titleLabelY, topPos
从类继承的字段 net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器构造器说明CreativeModeInventoryScreen
(LocalPlayer p_344408_, FeatureFlagSet p_260074_, boolean p_259569_) -
方法概要
修饰符和类型方法说明private boolean
boolean
charTyped
(char p_98521_, int p_98522_) protected boolean
checkTabClicked
(CreativeModeTab p_98563_, double p_98564_, double p_98565_) protected boolean
checkTabHovering
(GuiGraphics p_282317_, CreativeModeTab p_282244_, int p_283469_, int p_283411_) void
private int
getTabX
(CreativeModeTab p_260136_) private int
getTabY
(CreativeModeTab p_260181_) getTooltipFromContainerItem
(ItemStack p_281769_) static void
handleHotbarLoadOrSave
(Minecraft p_98599_, int p_98600_, boolean p_98601_, boolean p_98602_) protected boolean
hasClickedOutside
(double p_98541_, double p_98542_, int p_98543_, int p_98544_, int p_98545_) private boolean
hasPermissions
(Player p_259959_) protected void
init()
protected boolean
insideScrollbar
(double p_98524_, double p_98525_) private boolean
isCreativeSlot
(Slot p_98554_) boolean
boolean
keyPressed
(int p_98547_, int p_98548_, int p_98549_) boolean
keyReleased
(int p_98612_, int p_98613_, int p_98614_) boolean
mouseClicked
(double p_98531_, double p_98532_, int p_98533_) boolean
mouseDragged
(double p_98535_, double p_98536_, int p_98537_, double p_98538_, double p_98539_) boolean
mouseReleased
(double p_98622_, double p_98623_, int p_98624_) boolean
mouseScrolled
(double p_98527_, double p_98528_, double p_98529_, double p_301127_) private void
refreshCurrentTabContents
(Collection<ItemStack> p_261591_) private void
void
removed()
void
render
(GuiGraphics p_283000_, int p_281317_, int p_282770_, float p_281295_) protected void
renderBg
(GuiGraphics p_282663_, float p_282504_, int p_282089_, int p_282249_) protected void
renderLabels
(GuiGraphics p_283168_, int p_281774_, int p_281466_) protected void
renderTabButton
(GuiGraphics p_283590_, CreativeModeTab p_283489_) void
private void
selectTab
(CreativeModeTab p_98561_) void
setCurrentPage
(CreativeTabsScreenPage currentPage) boolean
protected void
slotClicked
(Slot p_98556_, int p_98557_, int p_98558_, ClickType p_98559_) private boolean
tryRebuildTabContents
(SessionSearchTrees p_342511_, FeatureFlagSet p_344947_, boolean p_345070_, HolderLookup.Provider p_343930_) private void
tryRefreshInvalidatedTabs
(FeatureFlagSet p_259501_, boolean p_259713_, HolderLookup.Provider p_270898_) private void
updateVisibleTags
(String p_98620_) 从类继承的方法 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
addItemSlotMouseAction, checkHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotUnderMouse, getXSize, getYSize, handleSlotStateChanged, isHovering, isPauseScreen, onClose, onMouseClickAction, renderBackground, renderSlot, renderSlotHighlightBack, renderSlotHighlightFront, renderSlots, renderTooltip, tick
从类继承的方法 net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, rebuildWidgets, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus
从类继承的方法 net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.gui.components.events.ContainerEventHandler
getChildAt, getCurrentFocusPath, isFocused, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
SCROLLER_SPRITE
-
SCROLLER_DISABLED_SPRITE
-
UNSELECTED_TOP_TABS
-
SELECTED_TOP_TABS
-
UNSELECTED_BOTTOM_TABS
-
SELECTED_BOTTOM_TABS
-
NUM_ROWS
private static final int NUM_ROWS- 另请参阅:
-
NUM_COLS
private static final int NUM_COLS- 另请参阅:
-
TAB_WIDTH
private static final int TAB_WIDTH- 另请参阅:
-
TAB_HEIGHT
private static final int TAB_HEIGHT- 另请参阅:
-
SCROLLER_WIDTH
private static final int SCROLLER_WIDTH- 另请参阅:
-
SCROLLER_HEIGHT
private static final int SCROLLER_HEIGHT- 另请参阅:
-
CONTAINER
-
TRASH_SLOT_TOOLTIP
-
TEXT_COLOR
private static final int TEXT_COLOR- 另请参阅:
-
selectedTab
-
scrollOffs
private float scrollOffs -
scrolling
private boolean scrolling -
searchBox
-
originalSlots
-
destroyItemSlot
-
listener
-
ignoreTextInput
private boolean ignoreTextInput -
hasClickedOutside
private boolean hasClickedOutside -
visibleTags
-
displayOperatorCreativeTab
private final boolean displayOperatorCreativeTab -
effects
-
pages
-
currentPage
-
-
构造器详细资料
-
CreativeModeInventoryScreen
public CreativeModeInventoryScreen(LocalPlayer p_344408_, FeatureFlagSet p_260074_, boolean p_259569_)
-
-
方法详细资料
-
hasPermissions
-
tryRefreshInvalidatedTabs
private void tryRefreshInvalidatedTabs(FeatureFlagSet p_259501_, boolean p_259713_, HolderLookup.Provider p_270898_) -
tryRebuildTabContents
private boolean tryRebuildTabContents(@Nullable SessionSearchTrees p_342511_, FeatureFlagSet p_344947_, boolean p_345070_, HolderLookup.Provider p_343930_) -
refreshCurrentTabContents
-
containerTick
public void containerTick() -
slotClicked
-
isCreativeSlot
-
init
protected void init() -
resize
-
removed
public void removed() -
charTyped
public boolean charTyped(char p_98521_, int p_98522_) -
keyPressed
public boolean keyPressed(int p_98547_, int p_98548_, int p_98549_) - 指定者:
keyPressed
在接口中ContainerEventHandler
- 指定者:
keyPressed
在接口中GuiEventListener
- 覆盖:
keyPressed
在类中AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
-
keyReleased
public boolean keyReleased(int p_98612_, int p_98613_, int p_98614_) -
refreshSearchResults
private void refreshSearchResults() -
updateVisibleTags
-
renderLabels
-
mouseClicked
public boolean mouseClicked(double p_98531_, double p_98532_, int p_98533_) - 指定者:
mouseClicked
在接口中ContainerEventHandler
- 指定者:
mouseClicked
在接口中GuiEventListener
- 覆盖:
mouseClicked
在类中AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
-
mouseReleased
public boolean mouseReleased(double p_98622_, double p_98623_, int p_98624_) -
canScroll
private boolean canScroll() -
selectTab
-
mouseScrolled
public boolean mouseScrolled(double p_98527_, double p_98528_, double p_98529_, double p_301127_) -
hasClickedOutside
protected boolean hasClickedOutside(double p_98541_, double p_98542_, int p_98543_, int p_98544_, int p_98545_) -
insideScrollbar
protected boolean insideScrollbar(double p_98524_, double p_98525_) -
mouseDragged
public boolean mouseDragged(double p_98535_, double p_98536_, int p_98537_, double p_98538_, double p_98539_) - 指定者:
mouseDragged
在接口中ContainerEventHandler
- 指定者:
mouseDragged
在接口中GuiEventListener
- 覆盖:
mouseDragged
在类中AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
-
render
- 指定者:
render
在接口中Renderable
- 覆盖:
render
在类中AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
-
showsActiveEffects
public boolean showsActiveEffects()- 覆盖:
showsActiveEffects
在类中Screen
-
getTooltipFromContainerItem
-
renderBg
-
getTabX
-
getTabY
-
checkTabClicked
-
checkTabHovering
protected boolean checkTabHovering(GuiGraphics p_282317_, CreativeModeTab p_282244_, int p_283469_, int p_283411_) -
renderTabButton
-
isInventoryOpen
public boolean isInventoryOpen() -
handleHotbarLoadOrSave
public static void handleHotbarLoadOrSave(Minecraft p_98599_, int p_98600_, boolean p_98601_, boolean p_98602_) -
getCurrentPage
-
setCurrentPage
-