Record Class StarcatcherJeiFPRecipe.Recipe
java.lang.Object
java.lang.Record
com.wdiscute.starcatcher.compat.jei.StarcatcherJeiFPRecipe.Recipe
- Enclosing class:
StarcatcherJeiFPRecipe
public static record StarcatcherJeiFPRecipe.Recipe(FishProperties fp, List<net.minecraft.network.chat.Component> components, net.minecraft.world.item.ItemStack treasure)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final mezz.jei.api.recipe.RecipeType<StarcatcherJeiFPRecipe.Recipe> -
Constructor Summary
ConstructorsConstructorDescriptionRecipe(FishProperties fp, List<net.minecraft.network.chat.Component> components, net.minecraft.world.item.ItemStack treasure) Creates an instance of aReciperecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.network.chat.Component> Returns the value of thecomponentsrecord component.final booleanIndicates whether some other object is "equal to" this one.fp()Returns the value of thefprecord component.final inthashCode()Returns a hash code value for this object.of(FishProperties fp) final StringtoString()Returns a string representation of this record class.net.minecraft.world.item.ItemStacktreasure()Returns the value of thetreasurerecord component.
-
Field Details
-
TYPE
-
-
Constructor Details
-
Recipe
public Recipe(FishProperties fp, List<net.minecraft.network.chat.Component> components, net.minecraft.world.item.ItemStack treasure) Creates an instance of aReciperecord class.- Parameters:
fp- the value for thefprecord componentcomponents- the value for thecomponentsrecord componenttreasure- the value for thetreasurerecord component
-
-
Method Details
-
of
-
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). -
fp
Returns the value of thefprecord component.- Returns:
- the value of the
fprecord component
-
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-
treasure
public net.minecraft.world.item.ItemStack treasure()Returns the value of thetreasurerecord component.- Returns:
- the value of the
treasurerecord component
-