Package forestry.api.fuels
Record Class EngineBronzeFuel
java.lang.Object
java.lang.Record
forestry.api.fuels.EngineBronzeFuel
- Record Components:
liquid- Fluid that is valid fuel for a biogas engine.powerPerCycle- Power produced by this fuel per work cycle of the engine.burnDuration- How many work cycles a single "stack" of this type lasts.dissipationMultiplier- By how much the normal heat dissipation rate of 1 is multiplied when using this fuel type.
public record EngineBronzeFuel(net.minecraft.world.level.material.Fluid liquid, int powerPerCycle, int burnDuration, int dissipationMultiplier)
extends Record
todo data driven
-
Constructor Summary
ConstructorsConstructorDescriptionEngineBronzeFuel(net.minecraft.world.level.material.Fluid liquid, int powerPerCycle, int burnDuration, int dissipationMultiplier) Creates an instance of aEngineBronzeFuelrecord 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.net.minecraft.world.level.material.Fluidliquid()Returns the value of theliquidrecord component.intReturns the value of thepowerPerCyclerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EngineBronzeFuel
public EngineBronzeFuel(net.minecraft.world.level.material.Fluid liquid, int powerPerCycle, int burnDuration, int dissipationMultiplier) Creates an instance of aEngineBronzeFuelrecord class.- Parameters:
liquid- the value for theliquidrecord componentpowerPerCycle- 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
liquid
public net.minecraft.world.level.material.Fluid liquid()Returns the value of theliquidrecord component.- Returns:
- the value of the
liquidrecord component
-
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
-