Class RecipeAlternativesWidget.AlternativeButtonWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.screen.recipebook.RecipeAlternativesWidget.AlternativeButtonWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Navigable
,Selectable
,Widget
- Direct Known Subclasses:
RecipeAlternativesWidget.CraftingAlternativeButtonWidget
,RecipeAlternativesWidget.FurnaceAlternativeButtonWidget
- Enclosing class:
RecipeAlternativesWidget
@Environment(CLIENT)
private abstract class RecipeAlternativesWidget.AlternativeButtonWidget
extends ClickableWidget
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget
intermediary net/minecraft/class_508$class_509
official fxt$b
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static final record
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final List
<RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot> (package private) final NetworkRecipeId
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionAlternativeButtonWidget
(int x, int y, NetworkRecipeId recipeId, boolean craftable, List<RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot> inputSlots) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected abstract Identifier
getOverlayTexture
(boolean enabled) void
renderWidget
(DrawContext context, int mouseX, int mouseY, float delta) protected static RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot
Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getTooltip, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onRelease, playClickSound, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setY
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
charTyped, getFocusedPath, keyPressed, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
recipeId
- Mappings:
Namespace Name Mixin selector named recipeId
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;recipeId:Lnet/minecraft/recipe/NetworkRecipeId;
intermediary field_3114
Lnet/minecraft/class_508$class_509;field_3114:Lnet/minecraft/class_10298;
official b
Lfxt$b;b:Lddk;
-
craftable
private final boolean craftable- Mappings:
Namespace Name Mixin selector named craftable
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;craftable:Z
intermediary field_3115
Lnet/minecraft/class_508$class_509;field_3115:Z
official c
Lfxt$b;c:Z
-
inputSlots
- Mappings:
Namespace Name Mixin selector named inputSlots
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;inputSlots:Ljava/util/List;
intermediary field_52834
Lnet/minecraft/class_508$class_509;field_52834:Ljava/util/List;
official d
Lfxt$b;d:Ljava/util/List;
-
-
Constructor Details
-
AlternativeButtonWidget
public AlternativeButtonWidget(int x, int y, NetworkRecipeId recipeId, boolean craftable, List<RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot> inputSlots) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;<init>(Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;IILnet/minecraft/recipe/NetworkRecipeId;ZLjava/util/List;)V
intermediary <init>
Lnet/minecraft/class_508$class_509;<init>(Lnet/minecraft/class_508;IILnet/minecraft/class_10298;ZLjava/util/List;)V
official <init>
Lfxt$b;<init>(Lfxt;IILddk;ZLjava/util/List;)V
-
-
Method Details
-
slot
protected static RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot slot(int x, int y, List<ItemStack> stacks) - Mappings:
Namespace Name Mixin selector named slot
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;slot(IILjava/util/List;)Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget$InputSlot;
intermediary method_62040
Lnet/minecraft/class_508$class_509;method_62040(IILjava/util/List;)Lnet/minecraft/class_508$class_509$class_510;
official a
Lfxt$b;a(IILjava/util/List;)Lfxt$b$a;
-
getOverlayTexture
- Mappings:
Namespace Name Mixin selector named getOverlayTexture
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;getOverlayTexture(Z)Lnet/minecraft/util/Identifier;
intermediary method_62039
Lnet/minecraft/class_508$class_509;method_62039(Z)Lnet/minecraft/class_2960;
official b
Lfxt$b;b(Z)Lalz;
-
appendClickableNarrations
- Specified by:
appendClickableNarrations
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named appendClickableNarrations
Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
intermediary method_47399
Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
official a
Lfoc;a(Lfsc;)V
-
renderWidget
- Specified by:
renderWidget
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named renderWidget
Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
official b
Lfoc;b(Lfnr;IIF)V
-