Package com.wdiscute.artisan.compat.jei
Record Class ArtisanJeiTapperRecipe.Recipe
java.lang.Object
java.lang.Record
com.wdiscute.artisan.compat.jei.ArtisanJeiTapperRecipe.Recipe
- Enclosing class:
ArtisanJeiTapperRecipe
public static record ArtisanJeiTapperRecipe.Recipe(int processing, net.minecraft.world.level.block.Block log, List<ChancedStack> output)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRecipe(int processing, net.minecraft.world.level.block.Block log, List<ChancedStack> output) Creates an instance of aReciperecord 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.level.block.Blocklog()Returns the value of thelogrecord component.of(net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> key, com.wdiscute.utils.Utils.Duo<Integer, List<ChancedStack>> duo) output()Returns the value of theoutputrecord component.intReturns the value of theprocessingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Recipe
Creates an instance of aReciperecord class.- Parameters:
processing- the value for theprocessingrecord componentlog- the value for thelogrecord componentoutput- the value for theoutputrecord component
-
-
Method Details
-
of
public static ArtisanJeiTapperRecipe.Recipe of(net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> key, com.wdiscute.utils.Utils.Duo<Integer, List<ChancedStack>> duo) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
processing
public int processing()Returns the value of theprocessingrecord component.- Returns:
- the value of the
processingrecord component
-
log
public net.minecraft.world.level.block.Block log()Returns the value of thelogrecord component.- Returns:
- the value of the
logrecord component
-
output
Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-