Package com.wdiscute.artisan.compat.jei
Record Class ArtisanJeiMushroomLogRecipe.Recipe
java.lang.Object
java.lang.Record
com.wdiscute.artisan.compat.jei.ArtisanJeiMushroomLogRecipe.Recipe
- Enclosing class:
ArtisanJeiMushroomLogRecipe
public static record ArtisanJeiMushroomLogRecipe.Recipe(net.minecraft.world.level.block.Block block, com.wdiscute.utils.MaybeStack output, float chance, int priority)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRecipe(net.minecraft.world.level.block.Block block, com.wdiscute.utils.MaybeStack output, float chance, int priority) Creates an instance of aReciperecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.block.Blockblock()Returns the value of theblockrecord component.floatchance()Returns the value of thechancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.of(net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> key, com.wdiscute.utils.Utils.Trio<com.wdiscute.utils.MaybeStack, Float, Integer> trio) com.wdiscute.utils.MaybeStackoutput()Returns the value of theoutputrecord component.intpriority()Returns the value of thepriorityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Recipe
public Recipe(net.minecraft.world.level.block.Block block, com.wdiscute.utils.MaybeStack output, float chance, int priority) Creates an instance of aReciperecord class.- Parameters:
block- the value for theblockrecord componentoutput- the value for theoutputrecord componentchance- the value for thechancerecord componentpriority- the value for thepriorityrecord component
-
-
Method Details
-
of
public static ArtisanJeiMushroomLogRecipe.Recipe of(net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.Block> key, com.wdiscute.utils.Utils.Trio<com.wdiscute.utils.MaybeStack, Float, Integer> trio) -
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 '=='. -
block
public net.minecraft.world.level.block.Block block()Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-
output
public com.wdiscute.utils.MaybeStack output()Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
chance
public float chance()Returns the value of thechancerecord component.- Returns:
- the value of the
chancerecord component
-
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-