Record Class RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot
java.lang.Object
java.lang.Record
net.minecraft.client.gui.screen.recipebook.RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot
- Record Components:
y
-x
-stacks
-
- Enclosing class:
RecipeAlternativesWidget.AlternativeButtonWidget
@Environment(CLIENT)
protected static record RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot(int y, int x, List<ItemStack> stacks)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget$InputSlot
intermediary net/minecraft/class_508$class_509$class_510
official fxt$b$a
named y
intermediary comp_2985
official a
named x
intermediary comp_2986
official b
named stacks
intermediary comp_2987
official c
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.get
(int index) final int
hashCode()
Returns a hash code value for this object.stacks()
Returns the value of thestacks
record component.final String
toString()
Returns a string representation of this record class.int
x()
Returns the value of thex
record component.int
y()
Returns the value of they
record component.
-
Field Details
-
Constructor Details
-
InputSlot
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget$InputSlot;<init>(IILjava/util/List;)V
intermediary <init>
Lnet/minecraft/class_508$class_509$class_510;<init>(IILjava/util/List;)V
official <init>
Lfxt$b$a;<init>(IILjava/util/List;)V
-
-
Method Details
-
get
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget$InputSlot;get(I)Lnet/minecraft/item/ItemStack;
intermediary method_62041
Lnet/minecraft/class_508$class_509$class_510;method_62041(I)Lnet/minecraft/class_1799;
official a
Lfxt$b$a;a(I)Lcxo;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
y
public int y()Returns the value of they
record component.- Returns:
- the value of the
y
record component
-
x
public int x()Returns the value of thex
record component.- Returns:
- the value of the
x
record component
-
stacks
Returns the value of thestacks
record component.- Returns:
- the value of the
stacks
record component
-