类 RecipeAlternativesWidget
- java.lang.Object
-
- net.minecraft.client.gui.DrawableHelper
-
- net.minecraft.client.gui.screen.recipebook.RecipeAlternativesWidget
-
@Environment(CLIENT) public class RecipeAlternativesWidget extends DrawableHelper implements Drawable, Element
- Mappings:
Namespace Name official ecdintermediary net/minecraft/class_508named net/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 (专用程序包) classRecipeAlternativesWidget.AlternativeButtonWidget(专用程序包) classRecipeAlternativesWidget.FurnaceAlternativeButtonWidget
-
字段概要
字段 修饰符和类型 字段 说明 private List<RecipeAlternativesWidget.AlternativeButtonWidget>alternativeButtonsprivate static IdentifierBACKGROUND_TEXTUREprivate intbuttonXprivate intbuttonYprivate MinecraftClientclientprivate static intfield_32406private static intfield_32407private booleanfurnaceprivate Recipe<?>lastClickedRecipeprivate RecipeResultCollectionresultCollectionprivate floattimeprivate booleanvisible-
从类继承的字段 net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
-
构造器概要
构造器 构造器 说明 RecipeAlternativesWidget()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanchangeFocus(boolean lookForwards)Changes the focusing element by cycling to the next/previous element.Recipe<?>getLastClickedRecipe()RecipeResultCollectiongetResults()booleanisMouseOver(double mouseX, double mouseY)Checks if the mouse position is within the bound of the element.booleanisVisible()booleanmouseClicked(double mouseX, double mouseY, int button)Callback for when a mouse button down event has been captured.voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)private voidrenderGrid(MatrixStack matrices, int int2, int int3, int int4, int int5, int int6, int int7)voidsetVisible(boolean visible)voidshowAlternativesForResult(MinecraftClient client, RecipeResultCollection results, int buttonX, int buttonY, int areaCenterX, int areaCenterY, float delta)-
从类继承的方法 net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, method_35719, method_35720, setZOffset
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.client.gui.Element
charTyped, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
-
-
-
字段详细资料
-
BACKGROUND_TEXTURE
private static final Identifier BACKGROUND_TEXTURE
- Mappings:
Namespace Name Mixin selector official aLecd;a:Lwp;intermediary field_3109Lnet/minecraft/class_508;field_3109:Lnet/minecraft/class_2960;named BACKGROUND_TEXTURELnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
-
field_32406
private static final int field_32406
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLecd;b:Iintermediary field_32406Lnet/minecraft/class_508;field_32406:Inamed field_32406Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_32406:I
-
field_32407
private static final int field_32407
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLecd;c:Iintermediary field_32407Lnet/minecraft/class_508;field_32407:Inamed field_32407Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_32407:I
-
alternativeButtons
private final List<RecipeAlternativesWidget.AlternativeButtonWidget> alternativeButtons
- Mappings:
Namespace Name Mixin selector official dLecd;d:Ljava/util/List;intermediary field_3106Lnet/minecraft/class_508;field_3106:Ljava/util/List;named alternativeButtonsLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;alternativeButtons:Ljava/util/List;
-
visible
private boolean visible
- Mappings:
Namespace Name Mixin selector official eLecd;e:Zintermediary field_3107Lnet/minecraft/class_508;field_3107:Znamed visibleLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;visible:Z
-
buttonX
private int buttonX
- Mappings:
Namespace Name Mixin selector official iLecd;i:Iintermediary field_3105Lnet/minecraft/class_508;field_3105:Inamed buttonXLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;buttonX:I
-
buttonY
private int buttonY
- Mappings:
Namespace Name Mixin selector official jLecd;j:Iintermediary field_3103Lnet/minecraft/class_508;field_3103:Inamed buttonYLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;buttonY:I
-
client
private MinecraftClient client
- Mappings:
Namespace Name Mixin selector official kLecd;k:Ldum;intermediary field_3108Lnet/minecraft/class_508;field_3108:Lnet/minecraft/class_310;named clientLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;client:Lnet/minecraft/client/MinecraftClient;
-
resultCollection
private RecipeResultCollection resultCollection
- Mappings:
Namespace Name Mixin selector official lLecd;l:Leci;intermediary field_3111Lnet/minecraft/class_508;field_3111:Lnet/minecraft/class_516;named resultCollectionLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;resultCollection:Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;
-
lastClickedRecipe
private Recipe<?> lastClickedRecipe
- Mappings:
Namespace Name Mixin selector official mLecd;m:Lbsj;intermediary field_3104Lnet/minecraft/class_508;field_3104:Lnet/minecraft/class_1860;named lastClickedRecipeLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;lastClickedRecipe:Lnet/minecraft/recipe/Recipe;
-
time
private float time
- Mappings:
Namespace Name Mixin selector official nLecd;n:Fintermediary field_3110Lnet/minecraft/class_508;field_3110:Fnamed timeLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;time:F
-
furnace
private boolean furnace
- Mappings:
Namespace Name Mixin selector official oLecd;o:Zintermediary field_3112Lnet/minecraft/class_508;field_3112:Znamed furnaceLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;furnace:Z
-
-
方法详细资料
-
showAlternativesForResult
public void showAlternativesForResult(MinecraftClient client, RecipeResultCollection results, int buttonX, int buttonY, int areaCenterX, int areaCenterY, float delta)
- Mappings:
Namespace Name Mixin selector official aLecd;a(Ldum;Leci;IIIIF)Vintermediary method_2617Lnet/minecraft/class_508;method_2617(Lnet/minecraft/class_310;Lnet/minecraft/class_516;IIIIF)Vnamed showAlternativesForResultLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;showAlternativesForResult(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;IIIIF)V
-
changeFocus
public boolean changeFocus(boolean lookForwards)
Changes the focusing element by cycling to the next/previous element. This action is done typically when the user has pressed the 'Tab' or 'Ctrl+Tab' key.- 指定者:
changeFocus在接口中Element- 参数:
lookForwards-trueto cycle forwards, otherwise cycle backwards- 返回:
trueto indicate that the event handling is successful/valid- Mappings:
Namespace Name Mixin selector official c_Ldwv;c_(Z)Zintermediary method_25407Lnet/minecraft/class_364;method_25407(Z)Znamed changeFocusLnet/minecraft/client/gui/Element;changeFocus(Z)Z
-
getResults
public RecipeResultCollection getResults()
- Mappings:
Namespace Name Mixin selector official aLecd;a()Leci;intermediary method_2614Lnet/minecraft/class_508;method_2614()Lnet/minecraft/class_516;named getResultsLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;getResults()Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;
-
getLastClickedRecipe
public Recipe<?> getLastClickedRecipe()
- Mappings:
Namespace Name Mixin selector official bLecd;b()Lbsj;intermediary method_2615Lnet/minecraft/class_508;method_2615()Lnet/minecraft/class_1860;named getLastClickedRecipeLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;getLastClickedRecipe()Lnet/minecraft/recipe/Recipe;
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button)Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- 指定者:
mouseClicked在接口中Element- 参数:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- 返回:
trueto indicate that the event handling is successful/valid- 另请参阅:
Mouse.onMouseButton(long, int, int, int),GLFW.GLFW_MOUSE_BUTTON_1- Mappings:
Namespace Name Mixin selector official aLdwv;a(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Znamed mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-
isMouseOver
public boolean isMouseOver(double mouseX, double mouseY)Checks if the mouse position is within the bound of the element.- 指定者:
isMouseOver在接口中Element- 参数:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mouse- 返回:
trueif the mouse is within the bound of the element, otherwisefalse- Mappings:
Namespace Name Mixin selector official bLdwv;b(DD)Zintermediary method_25405Lnet/minecraft/class_364;method_25405(DD)Znamed isMouseOverLnet/minecraft/client/gui/Element;isMouseOver(DD)Z
-
render
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
-
renderGrid
private void renderGrid(MatrixStack matrices, int int2, int int3, int int4, int int5, int int6, int int7)
- Mappings:
Namespace Name Mixin selector official cLecd;c(Ldpi;IIIIII)Vintermediary method_2618Lnet/minecraft/class_508;method_2618(Lnet/minecraft/class_4587;IIIIII)Vnamed renderGridLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;renderGrid(Lnet/minecraft/client/util/math/MatrixStack;IIIIII)V
-
setVisible
public void setVisible(boolean visible)
- Mappings:
Namespace Name Mixin selector official aLecd;a(Z)Vintermediary method_2613Lnet/minecraft/class_508;method_2613(Z)Vnamed setVisibleLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;setVisible(Z)V
-
isVisible
public boolean isVisible()
- Mappings:
Namespace Name Mixin selector official cLecd;c()Zintermediary method_2616Lnet/minecraft/class_508;method_2616()Znamed isVisibleLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;isVisible()Z
-
-