类 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
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
,MenuAccess<CreativeModeInventoryScreen.ItemPickerMenu>
public class CreativeModeInventoryScreen
extends EffectRenderingInventoryScreen<CreativeModeInventoryScreen.ItemPickerMenu>
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static class
static class
(专用程序包) static class
从类继承的嵌套类/接口 net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
字段概要
字段修饰符和类型字段说明(专用程序包) static final SimpleContainer
private static final ResourceLocation
private CreativeTabsScreenPage
private static final String
private Slot
private final boolean
private static final String
private boolean
private boolean
private CreativeInventoryListener
private static final int
private static final int
private final List<CreativeTabsScreenPage>
private static final int
private static final int
private boolean
private float
private EditBox
private static CreativeModeTab
private static final int
private static final int
private static final int
private static final Component
从类继承的字段 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, SLOT_ITEM_BLIT_OFFSET, slotColor, titleLabelX, titleLabelY, topPos
从类继承的字段 net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器构造器说明CreativeModeInventoryScreen
(Player pPlayer, FeatureFlagSet pEnabledFeatures, boolean pDisplayOperatorCreativeTab) -
方法概要
修饰符和类型方法说明private boolean
boolean
charTyped
(char pCodePoint, int pModifiers) protected boolean
checkTabClicked
(CreativeModeTab pCreativeModeTab, double pRelativeMouseX, double pRelativeMouseY) protected boolean
checkTabHovering
(GuiGraphics pGuiGraphics, CreativeModeTab pCreativeModeTab, int pMouseX, int pMouseY) void
private int
getTabX
(CreativeModeTab pTab) private int
getTabY
(CreativeModeTab pTab) getTooltipFromContainerItem
(ItemStack pStack) static void
handleHotbarLoadOrSave
(Minecraft pClient, int pIndex, boolean pLoad, boolean pSave) protected boolean
hasClickedOutside
(double pMouseX, double pMouseY, int pGuiLeft, int pGuiTop, int pMouseButton) private boolean
hasPermissions
(Player pPlayer) protected void
init()
protected boolean
insideScrollbar
(double pMouseX, double pMouseY) private boolean
isCreativeSlot
(Slot pSlot) boolean
boolean
keyPressed
(int pKeyCode, int pScanCode, int pModifiers) boolean
keyReleased
(int pKeyCode, int pScanCode, int pModifiers) boolean
mouseClicked
(double pMouseX, double pMouseY, int pButton) boolean
mouseDragged
(double pMouseX, double pMouseY, int pButton, double pDragX, double pDragY) boolean
mouseReleased
(double pMouseX, double pMouseY, int pButton) boolean
mouseScrolled
(double pMouseX, double pMouseY, double pDelta) private void
refreshCurrentTabContents
(Collection<ItemStack> pItems) private void
void
removed()
void
render
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) protected void
renderBg
(GuiGraphics pGuiGraphics, float pPartialTick, int pMouseX, int pMouseY) protected void
renderLabels
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY) protected void
renderTabButton
(GuiGraphics pGuiGraphics, CreativeModeTab pCreativeModeTab) void
private void
selectTab
(CreativeModeTab pTab) void
setCurrentPage
(CreativeTabsScreenPage currentPage) protected void
slotClicked
(Slot pSlot, int pSlotId, int pMouseButton, ClickType pType) private void
tryRefreshInvalidatedTabs
(FeatureFlagSet pEnabledFeatures, boolean pHasPermissions, HolderLookup.Provider pHolders) private void
updateVisibleTags
(String pSearch) 从类继承的方法 net.minecraft.client.gui.screens.inventory.EffectRenderingInventoryScreen
canSeeEffects
从类继承的方法 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getXSize, getYSize, isHovering, isPauseScreen, onClose, renderSlotHighlight, renderSlotHighlight, renderTooltip, tick
从类继承的方法 net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
从类继承的方法 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, magicalSpecialHackyFocus, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
CREATIVE_TABS_LOCATION
-
GUI_CREATIVE_TAB_PREFIX
- 另请参阅:
-
CUSTOM_SLOT_LOCK
- 另请参阅:
-
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 -
pages
-
currentPage
-
-
构造器详细资料
-
CreativeModeInventoryScreen
public CreativeModeInventoryScreen(Player pPlayer, FeatureFlagSet pEnabledFeatures, boolean pDisplayOperatorCreativeTab)
-
-
方法详细资料
-
hasPermissions
-
tryRefreshInvalidatedTabs
private void tryRefreshInvalidatedTabs(FeatureFlagSet pEnabledFeatures, boolean pHasPermissions, HolderLookup.Provider pHolders) -
refreshCurrentTabContents
-
containerTick
public void containerTick() -
slotClicked
-
isCreativeSlot
-
init
protected void init() -
resize
-
removed
public void removed() -
charTyped
public boolean charTyped(char pCodePoint, int pModifiers) -
keyPressed
public boolean keyPressed(int pKeyCode, int pScanCode, int pModifiers) - 指定者:
keyPressed
在接口中ContainerEventHandler
- 指定者:
keyPressed
在接口中GuiEventListener
- 覆盖:
keyPressed
在类中AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
-
keyReleased
public boolean keyReleased(int pKeyCode, int pScanCode, int pModifiers) -
refreshSearchResults
private void refreshSearchResults() -
updateVisibleTags
-
renderLabels
-
mouseClicked
public boolean mouseClicked(double pMouseX, double pMouseY, int pButton) - 指定者:
mouseClicked
在接口中ContainerEventHandler
- 指定者:
mouseClicked
在接口中GuiEventListener
- 覆盖:
mouseClicked
在类中AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
-
mouseReleased
public boolean mouseReleased(double pMouseX, double pMouseY, int pButton) -
canScroll
private boolean canScroll() -
selectTab
-
mouseScrolled
public boolean mouseScrolled(double pMouseX, double pMouseY, double pDelta) -
hasClickedOutside
protected boolean hasClickedOutside(double pMouseX, double pMouseY, int pGuiLeft, int pGuiTop, int pMouseButton) -
insideScrollbar
protected boolean insideScrollbar(double pMouseX, double pMouseY) -
mouseDragged
public boolean mouseDragged(double pMouseX, double pMouseY, int pButton, double pDragX, double pDragY) - 指定者:
mouseDragged
在接口中ContainerEventHandler
- 指定者:
mouseDragged
在接口中GuiEventListener
- 覆盖:
mouseDragged
在类中AbstractContainerScreen<CreativeModeInventoryScreen.ItemPickerMenu>
-
render
-
getTooltipFromContainerItem
-
renderBg
-
getTabX
-
getTabY
-
checkTabClicked
protected boolean checkTabClicked(CreativeModeTab pCreativeModeTab, double pRelativeMouseX, double pRelativeMouseY) -
checkTabHovering
protected boolean checkTabHovering(GuiGraphics pGuiGraphics, CreativeModeTab pCreativeModeTab, int pMouseX, int pMouseY) -
renderTabButton
-
isInventoryOpen
public boolean isInventoryOpen() -
handleHotbarLoadOrSave
public static void handleHotbarLoadOrSave(Minecraft pClient, int pIndex, boolean pLoad, boolean pSave) -
getCurrentPage
-
setCurrentPage
-