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

    Fields
    Modifier and Type
    Field
    Description
    private final List<ItemStack>
    The field for the stacks record component.
    private final int
    The field for the x record component.
    private final int
    The field for the y record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    InputSlot(int int2, int y, List<ItemStack> list)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    get(int index)
     
    final int
    Returns a hash code value for this object.
    Returns the value of the stacks record component.
    final String
    Returns a string representation of this record class.
    int
    x()
    Returns the value of the x record component.
    int
    y()
    Returns the value of the y record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • y

      private final int y
      The field for the y record component.
    • x

      private final int x
      The field for the x record component.
    • stacks

      private final List<ItemStack> stacks
      The field for the stacks record component.
  • Constructor Details

    • InputSlot

      public InputSlot(int int2, int y, List<ItemStack> list)
      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

      public ItemStack get(int index)
      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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • y

      public int y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • x

      public int x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • stacks

      public List<ItemStack> stacks()
      Returns the value of the stacks record component.
      Returns:
      the value of the stacks record component