Interface FluidTemperature.DiscreteFluidTemperature
- All Superinterfaces:
FluidTemperature
- Enclosing interface:
- FluidTemperature
public static interface FluidTemperature.DiscreteFluidTemperature extends FluidTemperature
A Discrete
FluidTemperature
has a single temperature per FluidKey
.-
Nested Class Summary
Nested classes/interfaces inherited from interface alexiil.mc.lib.attributes.fluid.volume.FluidTemperature
FluidTemperature.ContinuousFluidTemperature, FluidTemperature.DiscreteFluidTemperature
-
Method Summary
Modifier and Type Method Description double
getTemperature(FluidKey fluidKey)
default double
getTemperature(FluidVolume fluid)
Methods inherited from interface alexiil.mc.lib.attributes.fluid.volume.FluidTemperature
addTemperatureToTooltip, addTemperatureToTooltip
-
Method Details
-
getTemperature
- Throws:
java.lang.IllegalArgumentException
- if this temperature scale doesn't apply to the givenFluidKey
.
-
getTemperature
- Specified by:
getTemperature
in interfaceFluidTemperature
- Returns:
- The temperature of the fluid, in degrees C.
-