类 RecipeButton
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.screens.recipebook.RecipeButton
- 所有已实现的接口:
GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
字段概要
字段修饰符和类型字段说明private boolean
private static final float
private float
private static final int
private RecipeCollection
private static final Component
private List
<RecipeButton.ResolvedEntry> private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private final SlotSelectTime
从类继承的字段 net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static boolean
getTooltipText
(ItemStack p_363067_) int
getWidth()
private boolean
void
init
(RecipeCollection p_100480_, boolean p_363893_, RecipeBookPage p_100481_, ContextMap p_364354_) boolean
protected boolean
isValidClickButton
(int p_100473_) void
renderWidget
(GuiGraphics p_281385_, int p_282779_, int p_282744_, float p_282439_) void
updateWidgetNarration
(NarrationElementOutput p_170060_) 从类继承的方法 net.minecraft.client.gui.components.AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playButtonClickSound, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessage
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled
从接口继承的方法 net.minecraft.client.gui.layouts.LayoutElement
setPosition
从接口继承的方法 net.minecraft.client.gui.narration.NarratableEntry
getNarratables
-
字段详细资料
-
SLOT_MANY_CRAFTABLE_SPRITE
-
SLOT_CRAFTABLE_SPRITE
-
SLOT_MANY_UNCRAFTABLE_SPRITE
-
SLOT_UNCRAFTABLE_SPRITE
-
ANIMATION_TIME
private static final float ANIMATION_TIME- 另请参阅:
-
BACKGROUND_SIZE
private static final int BACKGROUND_SIZE- 另请参阅:
-
MORE_RECIPES_TOOLTIP
-
collection
-
selectedEntries
-
allRecipesHaveSameResultDisplay
private boolean allRecipesHaveSameResultDisplay -
slotSelectTime
-
animationTime
private float animationTime
-
-
构造器详细资料
-
RecipeButton
-
-
方法详细资料
-
init
public void init(RecipeCollection p_100480_, boolean p_363893_, RecipeBookPage p_100481_, ContextMap p_364354_) -
allRecipesHaveSameResultDisplay
-
getCollection
-
renderWidget
- 指定者:
renderWidget
在类中AbstractWidget
-
hasMultipleRecipes
private boolean hasMultipleRecipes() -
isOnlyOption
public boolean isOnlyOption() -
getCurrentRecipe
-
getDisplayStack
-
getTooltipText
-
updateWidgetNarration
- 指定者:
updateWidgetNarration
在类中AbstractWidget
-
getWidth
public int getWidth()- 指定者:
getWidth
在接口中LayoutElement
- 覆盖:
getWidth
在类中AbstractWidget
-
isValidClickButton
protected boolean isValidClickButton(int p_100473_) - 覆盖:
isValidClickButton
在类中AbstractWidget
-