Package com.hbm_m.compat.jei
Record Class GasCentrifugeJeiCategory.Recipe
java.lang.Object
java.lang.Record
com.hbm_m.compat.jei.GasCentrifugeJeiCategory.Recipe
- Enclosing class:
- GasCentrifugeJeiCategory
public static record GasCentrifugeJeiCategory.Recipe(net.minecraft.world.level.material.Fluid inputFluid, int inputAmount, net.minecraft.world.item.ItemStack[] outputs, boolean highSpeed, int centrifugeCount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRecipe(net.minecraft.world.level.material.Fluid inputFluid, int inputAmount, net.minecraft.world.item.ItemStack[] outputs, boolean highSpeed, int centrifugeCount) Creates an instance of aReciperecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecentrifugeCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehighSpeedrecord component.intReturns the value of theinputAmountrecord component.net.minecraft.world.level.material.FluidReturns the value of theinputFluidrecord component.net.minecraft.world.item.ItemStack[]outputs()Returns the value of theoutputsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Recipe
public Recipe(net.minecraft.world.level.material.Fluid inputFluid, int inputAmount, net.minecraft.world.item.ItemStack[] outputs, boolean highSpeed, int centrifugeCount) Creates an instance of aReciperecord class.- Parameters:
inputFluid- the value for theinputFluidrecord componentinputAmount- the value for theinputAmountrecord componentoutputs- the value for theoutputsrecord componenthighSpeed- the value for thehighSpeedrecord componentcentrifugeCount- the value for thecentrifugeCountrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
inputFluid
public net.minecraft.world.level.material.Fluid inputFluid()Returns the value of theinputFluidrecord component.- Returns:
- the value of the
inputFluidrecord component
-
inputAmount
public int inputAmount()Returns the value of theinputAmountrecord component.- Returns:
- the value of the
inputAmountrecord component
-
outputs
public net.minecraft.world.item.ItemStack[] outputs()Returns the value of theoutputsrecord component.- Returns:
- the value of the
outputsrecord component
-
highSpeed
public boolean highSpeed()Returns the value of thehighSpeedrecord component.- Returns:
- the value of the
highSpeedrecord component
-
centrifugeCount
public int centrifugeCount()Returns the value of thecentrifugeCountrecord component.- Returns:
- the value of the
centrifugeCountrecord component
-