Package forestry.api.core.machines.fuels
Record Class BiogasEngineFuel
java.lang.Object
java.lang.Record
forestry.api.core.machines.fuels.BiogasEngineFuel
- Record Components:
powerPerCycle- Power produced by this fuel per work cycle of the engineburnDuration- How many work cycles a single "stack" of this type lastsdissipationMultiplier- By how much the normal heat dissipation rate of 1 is multiplied for this fuel
public record BiogasEngineFuel(int powerPerCycle, int burnDuration, int dissipationMultiplier)
extends Record
Data map value for fluids usable as fuel or coolant by the Biogas and Combustion Engines.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBiogasEngineFuel(int powerPerCycle, int burnDuration, int dissipationMultiplier) Creates an instance of aBiogasEngineFuelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theburnDurationrecord component.intReturns the value of thedissipationMultiplierrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thepowerPerCyclerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
BiogasEngineFuel
public BiogasEngineFuel(int powerPerCycle, int burnDuration, int dissipationMultiplier) Creates an instance of aBiogasEngineFuelrecord class.- Parameters:
powerPerCycle- the value for thepowerPerCyclerecord componentburnDuration- the value for theburnDurationrecord componentdissipationMultiplier- the value for thedissipationMultiplierrecord 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 '=='. -
powerPerCycle
public int powerPerCycle()Returns the value of thepowerPerCyclerecord component.- Returns:
- the value of the
powerPerCyclerecord component
-
burnDuration
public int burnDuration()Returns the value of theburnDurationrecord component.- Returns:
- the value of the
burnDurationrecord component
-
dissipationMultiplier
public int dissipationMultiplier()Returns the value of thedissipationMultiplierrecord component.- Returns:
- the value of the
dissipationMultiplierrecord component
-