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
ConstructorsConstructorDescriptionInfo(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 aInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionmezz.jei.api.gui.drawable.IDrawableReturns the value of thebackgroundrecord component.Returns the value of thecatalystsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mezz.jei.api.gui.drawable.IDrawableicon()Returns the value of theiconrecord component.recipes()Returns the value of therecipesrecord component.mezz.jei.api.recipe.RecipeType<T> Returns the value of therecipeTyperecord component.net.minecraft.network.chat.Componenttitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aInforecord class.- Parameters:
recipeType- the value for therecipeTyperecord componenttitle- the value for thetitlerecord componentbackground- the value for thebackgroundrecord componenticon- the value for theiconrecord componentrecipes- the value for therecipesrecord componentcatalysts- the value for thecatalystsrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
recipeType
Returns the value of therecipeTyperecord component.- Returns:
- the value of the
recipeTyperecord component
-
title
public net.minecraft.network.chat.Component title()Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
background
public mezz.jei.api.gui.drawable.IDrawable background()Returns the value of thebackgroundrecord component.- Returns:
- the value of the
backgroundrecord component
-
icon
public mezz.jei.api.gui.drawable.IDrawable icon()Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
recipes
Returns the value of therecipesrecord component.- Returns:
- the value of the
recipesrecord component
-
catalysts
Returns the value of thecatalystsrecord component.- Returns:
- the value of the
catalystsrecord component
-