类 RecipeButton
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.screens.recipebook.RecipeButton
- 所有已实现的接口:
GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
,IAbstractWidgetExtension
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
字段概要
字段修饰符和类型字段说明private static final float
private float
private static final int
private RecipeBook
private RecipeCollection
private int
private RecipeBookMenu<?>
private static final Component
private static final ResourceLocation
static final int
private float
从类继承的字段 net.minecraft.client.gui.components.AbstractWidget
ACCESSIBILITY_TEXTURE, active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Recipe<?>
int
getWidth()
void
init
(RecipeCollection pCollection, RecipeBookPage pRecipeBookPage) boolean
protected boolean
isValidClickButton
(int pButton) void
renderWidget
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) void
updateWidgetNarration
(NarrationElementOutput pNarrationElementOutput) 从类继承的方法 net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getRectangle, getTabOrderGroup, getTooltip, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderTexture, setAlpha, setFGColor, setFocused, setHeight, setMessage, 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, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled
从接口继承的方法 net.minecraftforge.client.extensions.IAbstractWidgetExtension
onClick
从接口继承的方法 net.minecraft.client.gui.layouts.LayoutElement
setPosition
-
字段详细资料
-
RECIPE_BOOK_LOCATION
-
ANIMATION_TIME
private static final float ANIMATION_TIME- 另请参阅:
-
BACKGROUND_SIZE
private static final int BACKGROUND_SIZE- 另请参阅:
-
TICKS_TO_SWAP
public static final int TICKS_TO_SWAP- 另请参阅:
-
MORE_RECIPES_TOOLTIP
-
book
-
collection
-
time
private float time -
animationTime
private float animationTime -
currentIndex
private int currentIndex
-
-
构造器详细资料
-
RecipeButton
public RecipeButton()
-
-
方法详细资料
-
init
-
getCollection
-
renderWidget
- 指定者:
renderWidget
在类中AbstractWidget
-
getOrderedRecipes
-
isOnlyOption
public boolean isOnlyOption() -
getRecipe
-
getTooltipText
-
updateWidgetNarration
- 指定者:
updateWidgetNarration
在类中AbstractWidget
-
getWidth
public int getWidth()- 指定者:
getWidth
在接口中LayoutElement
- 覆盖:
getWidth
在类中AbstractWidget
-
isValidClickButton
protected boolean isValidClickButton(int pButton) - 覆盖:
isValidClickButton
在类中AbstractWidget
-