Record Class FlagInfoCategory.FlagInfoRecipe
java.lang.Object
java.lang.Record
petrolpark.mc.library.compat.jei.category.FlagInfoCategory.FlagInfoRecipe
- Enclosing class:
FlagInfoCategory
public static record FlagInfoCategory.FlagInfoRecipe(Optional<Pair<mezz.jei.api.ingredients.ITypedIngredient<?>,IFlagPole<?,?>>> stackAndFlagPole, FlagIngredientType.FlagHolderHolder flag)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFlagInfoRecipe(Optional<Pair<mezz.jei.api.ingredients.ITypedIngredient<?>, IFlagPole<?, ?>>> stackAndFlagPole, FlagIngredientType.FlagHolderHolder flag) Creates an instance of aFlagInfoReciperecord class.FlagInfoRecipe(net.minecraft.core.Holder<Flag> flag) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.flag()Returns the value of theflagrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thestackAndFlagPolerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FlagInfoRecipe
-
FlagInfoRecipe
public FlagInfoRecipe(Optional<Pair<mezz.jei.api.ingredients.ITypedIngredient<?>, IFlagPole<?, ?>>> stackAndFlagPole, FlagIngredientType.FlagHolderHolder flag) Creates an instance of aFlagInfoReciperecord class.- Parameters:
stackAndFlagPole- the value for thestackAndFlagPolerecord componentflag- the value for theflagrecord 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). -
stackAndFlagPole
public Optional<Pair<mezz.jei.api.ingredients.ITypedIngredient<?>,IFlagPole<?, stackAndFlagPole()?>>> Returns the value of thestackAndFlagPolerecord component.- Returns:
- the value of the
stackAndFlagPolerecord component
-
flag
Returns the value of theflagrecord component.- Returns:
- the value of the
flagrecord component
-