类 AbstractRecipeBookScreen<T extends RecipeBookMenu>
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.AbstractRecipeBookScreen<T>
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
,MenuAccess<T>
,RecipeUpdateListener
public abstract class AbstractRecipeBookScreen<T extends RecipeBookMenu>
extends AbstractContainerScreen<T>
implements RecipeUpdateListener
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
字段概要
字段从类继承的字段 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
-
构造器概要
构造器构造器说明AbstractRecipeBookScreen
(T p_365857_, RecipeBookComponent<?> p_370150_, Inventory p_369435_, Component p_366314_) -
方法概要
修饰符和类型方法说明boolean
charTyped
(char p_362855_, int p_363208_) void
void
fillGhostRecipe
(RecipeDisplay p_367089_) protected abstract ScreenPosition
protected boolean
hasClickedOutside
(double p_361722_, double p_361253_, int p_370022_, int p_369977_, int p_369581_) protected void
init()
private void
protected boolean
protected boolean
isHovering
(int p_365583_, int p_365247_, int p_369651_, int p_367039_, double p_362562_, double p_363251_) boolean
keyPressed
(int p_367445_, int p_364170_, int p_369751_) boolean
mouseClicked
(double p_362013_, double p_365749_, int p_363609_) protected void
void
void
render
(GuiGraphics p_369592_, int p_362399_, int p_367501_, float p_361085_) protected void
renderSlots
(GuiGraphics p_361216_) protected void
slotClicked
(Slot p_366850_, int p_365209_, int p_363173_, ClickType p_369612_) 从类继承的方法 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
addItemSlotMouseAction, checkHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, handleSlotStateChanged, isPauseScreen, mouseDragged, mouseReleased, mouseScrolled, onClose, onMouseClickAction, removed, renderBackground, renderBg, renderLabels, renderSlot, renderSlotHighlightBack, renderSlotHighlightFront, 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, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, 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, keyReleased, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
recipeBookComponent
-
widthTooNarrow
private boolean widthTooNarrow
-
-
构造器详细资料
-
AbstractRecipeBookScreen
public AbstractRecipeBookScreen(T p_365857_, RecipeBookComponent<?> p_370150_, Inventory p_369435_, Component p_366314_)
-
-
方法详细资料
-
init
protected void init()- 覆盖:
init
在类中AbstractContainerScreen<T extends RecipeBookMenu>
-
getRecipeBookButtonPosition
-
initButton
private void initButton() -
onRecipeBookButtonClick
protected void onRecipeBookButtonClick() -
render
- 指定者:
render
在接口中Renderable
- 覆盖:
render
在类中AbstractContainerScreen<T extends RecipeBookMenu>
-
renderSlots
- 覆盖:
renderSlots
在类中AbstractContainerScreen<T extends RecipeBookMenu>
-
isBiggerResultSlot
protected boolean isBiggerResultSlot() -
charTyped
public boolean charTyped(char p_362855_, int p_363208_) - 指定者:
charTyped
在接口中ContainerEventHandler
- 指定者:
charTyped
在接口中GuiEventListener
-
keyPressed
public boolean keyPressed(int p_367445_, int p_364170_, int p_369751_) - 指定者:
keyPressed
在接口中ContainerEventHandler
- 指定者:
keyPressed
在接口中GuiEventListener
- 覆盖:
keyPressed
在类中AbstractContainerScreen<T extends RecipeBookMenu>
-
mouseClicked
public boolean mouseClicked(double p_362013_, double p_365749_, int p_363609_) - 指定者:
mouseClicked
在接口中ContainerEventHandler
- 指定者:
mouseClicked
在接口中GuiEventListener
- 覆盖:
mouseClicked
在类中AbstractContainerScreen<T extends RecipeBookMenu>
-
isHovering
protected boolean isHovering(int p_365583_, int p_365247_, int p_369651_, int p_367039_, double p_362562_, double p_363251_) - 覆盖:
isHovering
在类中AbstractContainerScreen<T extends RecipeBookMenu>
-
hasClickedOutside
protected boolean hasClickedOutside(double p_361722_, double p_361253_, int p_370022_, int p_369977_, int p_369581_) - 覆盖:
hasClickedOutside
在类中AbstractContainerScreen<T extends RecipeBookMenu>
-
slotClicked
- 覆盖:
slotClicked
在类中AbstractContainerScreen<T extends RecipeBookMenu>
-
containerTick
public void containerTick()- 覆盖:
containerTick
在类中AbstractContainerScreen<T extends RecipeBookMenu>
-
recipesUpdated
public void recipesUpdated()- 指定者:
recipesUpdated
在接口中RecipeUpdateListener
-
fillGhostRecipe
- 指定者:
fillGhostRecipe
在接口中RecipeUpdateListener
-