Record Class CreateRecipeCategory.Info<T extends net.minecraft.world.item.crafting.Recipe<?>>

java.lang.Object
java.lang.Record
com.simibubi.create.compat.jei.category.CreateRecipeCategory.Info<T>
Enclosing class:
CreateRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>

public static record CreateRecipeCategory.Info<T extends net.minecraft.world.item.crafting.Recipe<?>>(mezz.jei.api.recipe.RecipeType<T extends net.minecraft.world.item.crafting.Recipe<?>> recipeType, net.minecraft.network.chat.Component title, mezz.jei.api.gui.drawable.IDrawable background, mezz.jei.api.gui.drawable.IDrawable icon, Supplier<List<net.minecraft.world.item.crafting.RecipeHolder<T extends net.minecraft.world.item.crafting.Recipe<?>>>> recipes, List<Supplier<? extends net.minecraft.world.item.ItemStack>> catalysts) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Info(mezz.jei.api.recipe.RecipeType<T> recipeType, net.minecraft.network.chat.Component title, mezz.jei.api.gui.drawable.IDrawable background, mezz.jei.api.gui.drawable.IDrawable icon, Supplier<List<net.minecraft.world.item.crafting.RecipeHolder<T>>> recipes, List<Supplier<? extends net.minecraft.world.item.ItemStack>> catalysts)
    Creates an instance of a Info record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    mezz.jei.api.gui.drawable.IDrawable
    Returns the value of the background record component.
    List<Supplier<? extends net.minecraft.world.item.ItemStack>>
    Returns the value of the catalysts record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    mezz.jei.api.gui.drawable.IDrawable
    Returns the value of the icon record component.
    Supplier<List<net.minecraft.world.item.crafting.RecipeHolder<T>>>
    Returns the value of the recipes record component.
    mezz.jei.api.recipe.RecipeType<T>
    Returns the value of the recipeType record component.
    net.minecraft.network.chat.Component
    Returns the value of the title record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

    • Info

      public Info(mezz.jei.api.recipe.RecipeType<T> recipeType, net.minecraft.network.chat.Component title, mezz.jei.api.gui.drawable.IDrawable background, mezz.jei.api.gui.drawable.IDrawable icon, Supplier<List<net.minecraft.world.item.crafting.RecipeHolder<T>>> recipes, List<Supplier<? extends net.minecraft.world.item.ItemStack>> catalysts)
      Creates an instance of a Info record class.
      Parameters:
      recipeType - the value for the recipeType record component
      title - the value for the title record component
      background - the value for the background record component
      icon - the value for the icon record component
      recipes - the value for the recipes record component
      catalysts - the value for the catalysts record component
  • 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 o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • recipeType

      public mezz.jei.api.recipe.RecipeType<T> recipeType()
      Returns the value of the recipeType record component.
      Returns:
      the value of the recipeType record component
    • title

      public net.minecraft.network.chat.Component title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • background

      public mezz.jei.api.gui.drawable.IDrawable background()
      Returns the value of the background record component.
      Returns:
      the value of the background record component
    • icon

      public mezz.jei.api.gui.drawable.IDrawable icon()
      Returns the value of the icon record component.
      Returns:
      the value of the icon record component
    • recipes

      public Supplier<List<net.minecraft.world.item.crafting.RecipeHolder<T>>> recipes()
      Returns the value of the recipes record component.
      Returns:
      the value of the recipes record component
    • catalysts

      public List<Supplier<? extends net.minecraft.world.item.ItemStack>> catalysts()
      Returns the value of the catalysts record component.
      Returns:
      the value of the catalysts record component