Record Class RecipeBookWidget.Tab

java.lang.Object
java.lang.Record
net.minecraft.client.gui.screen.recipebook.RecipeBookWidget.Tab
Record Components:
primaryIcon -
secondaryIcon -
category -
Enclosing class:
RecipeBookWidget<T extends AbstractRecipeScreenHandler>

@Environment(CLIENT) public static record RecipeBookWidget.Tab(ItemStack primaryIcon, Optional<ItemStack> secondaryIcon, RecipeBookGroup category) extends Record
Mappings:
Namespace Name
named net/minecraft/client/gui/screen/recipebook/RecipeBookWidget$Tab
intermediary net/minecraft/class_507$class_10329
official fxu$a
named primaryIcon
intermediary comp_3287
official a
named secondaryIcon
intermediary comp_3288
official b
named category
intermediary comp_3289
official c
  • Field Details

  • Constructor Details

    • Tab

      public Tab(RecipeBookType type)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget$Tab;<init>(Lnet/minecraft/client/recipebook/RecipeBookType;)V
      intermediary <init> Lnet/minecraft/class_507$class_10329;<init>(Lnet/minecraft/class_10331;)V
      official <init> Lfxu$a;<init>(Lfya;)V
    • Tab

      public Tab(Item primaryIcon, RecipeBookCategory category)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget$Tab;<init>(Lnet/minecraft/item/Item;Lnet/minecraft/recipe/book/RecipeBookCategory;)V
      intermediary <init> Lnet/minecraft/class_507$class_10329;<init>(Lnet/minecraft/class_1792;Lnet/minecraft/class_10355;)V
      official <init> Lfxu$a;<init>(Lcxk;Ldcg;)V
    • Tab

      public Tab(Item primaryIcon, Item secondaryIcon, RecipeBookCategory category)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget$Tab;<init>(Lnet/minecraft/item/Item;Lnet/minecraft/item/Item;Lnet/minecraft/recipe/book/RecipeBookCategory;)V
      intermediary <init> Lnet/minecraft/class_507$class_10329;<init>(Lnet/minecraft/class_1792;Lnet/minecraft/class_1792;Lnet/minecraft/class_10355;)V
      official <init> Lfxu$a;<init>(Lcxk;Lcxk;Ldcg;)V
    • Tab

      public Tab(ItemStack itemStack, Optional<ItemStack> optional, RecipeBookGroup recipeBookGroup)
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • primaryIcon

      public ItemStack primaryIcon()
      Returns the value of the primaryIcon record component.
      Returns:
      the value of the primaryIcon record component
    • secondaryIcon

      public Optional<ItemStack> secondaryIcon()
      Returns the value of the secondaryIcon record component.
      Returns:
      the value of the secondaryIcon record component
    • category

      public RecipeBookGroup category()
      Returns the value of the category record component.
      Returns:
      the value of the category record component