Record Class BuiltinTemperatureSourcesImpl
java.lang.Object
java.lang.Record
com.github.thedeathlycow.thermoo.impl.core.BuiltinTemperatureSourcesImpl
- All Implemented Interfaces:
BuiltinTemperatureSources
public record BuiltinTemperatureSourcesImpl(TemperatureChange absolute, TemperatureChange active, TemperatureChange passive, TemperatureChange environment)
extends Record
implements BuiltinTemperatureSources
-
Constructor Summary
ConstructorsConstructorDescriptionBuiltinTemperatureSourcesImpl(TemperatureChange absolute, TemperatureChange active, TemperatureChange passive, TemperatureChange environment) Creates an instance of aBuiltinTemperatureSourcesImplrecord class.BuiltinTemperatureSourcesImpl(net.minecraft.core.RegistryAccess access) -
Method Summary
Modifier and TypeMethodDescriptionabsolute()Returns the value of theabsoluterecord component.active()Returns the value of theactiverecord component.Returns the value of theenvironmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.passive()Returns the value of thepassiverecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BuiltinTemperatureSourcesImpl
public BuiltinTemperatureSourcesImpl(net.minecraft.core.RegistryAccess access) -
BuiltinTemperatureSourcesImpl
public BuiltinTemperatureSourcesImpl(TemperatureChange absolute, TemperatureChange active, TemperatureChange passive, TemperatureChange environment) Creates an instance of aBuiltinTemperatureSourcesImplrecord class.- Parameters:
absolute- the value for theabsoluterecord componentactive- the value for theactiverecord componentpassive- the value for thepassiverecord componentenvironment- the value for theenvironmentrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 withObjects::equals(Object,Object). -
absolute
Returns the value of theabsoluterecord component.- Specified by:
absolutein interfaceBuiltinTemperatureSources- Returns:
- the value of the
absoluterecord component
-
active
Returns the value of theactiverecord component.- Specified by:
activein interfaceBuiltinTemperatureSources- Returns:
- the value of the
activerecord component
-
passive
Returns the value of thepassiverecord component.- Specified by:
passivein interfaceBuiltinTemperatureSources- Returns:
- the value of the
passiverecord component
-
environment
Returns the value of theenvironmentrecord component.- Specified by:
environmentin interfaceBuiltinTemperatureSources- Returns:
- the value of the
environmentrecord component
-