Record Class InteractionInfo
java.lang.Object
java.lang.Record
net.darkhax.botanypots.common.addons.jei.interaction.InteractionInfo
public record InteractionInfo(net.minecraft.world.item.crafting.Ingredient input, Optional<net.minecraft.world.item.crafting.Ingredient> soilTest, Optional<net.minecraft.world.item.crafting.Ingredient> seedTest, net.minecraft.world.item.ItemStack soilOutput, net.minecraft.world.item.ItemStack seedOutput)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInteractionInfo(BasicPotInteraction interaction) InteractionInfo(net.minecraft.world.item.crafting.Ingredient input, Optional<net.minecraft.world.item.crafting.Ingredient> soilTest, Optional<net.minecraft.world.item.crafting.Ingredient> seedTest, net.minecraft.world.item.ItemStack soilOutput, net.minecraft.world.item.ItemStack seedOutput) Creates an instance of aInteractionInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.world.item.crafting.Ingredientinput()Returns the value of theinputrecord component.net.minecraft.world.item.ItemStackReturns the value of theseedOutputrecord component.Optional<net.minecraft.world.item.crafting.Ingredient> seedTest()Returns the value of theseedTestrecord component.net.minecraft.world.item.ItemStackReturns the value of thesoilOutputrecord component.Optional<net.minecraft.world.item.crafting.Ingredient> soilTest()Returns the value of thesoilTestrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InteractionInfo
-
InteractionInfo
public InteractionInfo(net.minecraft.world.item.crafting.Ingredient input, Optional<net.minecraft.world.item.crafting.Ingredient> soilTest, Optional<net.minecraft.world.item.crafting.Ingredient> seedTest, net.minecraft.world.item.ItemStack soilOutput, net.minecraft.world.item.ItemStack seedOutput) Creates an instance of aInteractionInforecord class.- Parameters:
input- the value for theinputrecord componentsoilTest- the value for thesoilTestrecord componentseedTest- the value for theseedTestrecord componentsoilOutput- the value for thesoilOutputrecord componentseedOutput- the value for theseedOutputrecord 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). -
input
public net.minecraft.world.item.crafting.Ingredient input()Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
soilTest
Returns the value of thesoilTestrecord component.- Returns:
- the value of the
soilTestrecord component
-
seedTest
Returns the value of theseedTestrecord component.- Returns:
- the value of the
seedTestrecord component
-
soilOutput
public net.minecraft.world.item.ItemStack soilOutput()Returns the value of thesoilOutputrecord component.- Returns:
- the value of the
soilOutputrecord component
-
seedOutput
public net.minecraft.world.item.ItemStack seedOutput()Returns the value of theseedOutputrecord component.- Returns:
- the value of the
seedOutputrecord component
-