Package forestry.api.core.machines.fuels
Record Class FermenterFuel
java.lang.Object
java.lang.Record
forestry.api.core.machines.fuels.FermenterFuel
- Record Components:
fermentPerCycle- How much is fermented per work cycle, i.e. how much biomass is produced per cycleburnDuration- Amount of work cycles a single item of this fuel lasts before expiring
Data map value for items usable as fuel by the Fermenter.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFermenterFuel(int fermentPerCycle, int burnDuration) Creates an instance of aFermenterFuelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theburnDurationrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefermentPerCyclerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
FermenterFuel
public FermenterFuel(int fermentPerCycle, int burnDuration) Creates an instance of aFermenterFuelrecord class.- Parameters:
fermentPerCycle- the value for thefermentPerCyclerecord componentburnDuration- the value for theburnDurationrecord 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 with '=='. -
fermentPerCycle
public int fermentPerCycle()Returns the value of thefermentPerCyclerecord component.- Returns:
- the value of the
fermentPerCyclerecord component
-
burnDuration
public int burnDuration()Returns the value of theburnDurationrecord component.- Returns:
- the value of the
burnDurationrecord component
-