Class VanillaUniversalBucketTemperature
java.lang.Object
org.cyclops.commoncapabilities.modcompat.vanilla.capability.temperature.VanillaUniversalBucketTemperature
- All Implemented Interfaces:
ITemperature
Temperature capability for the vanilla furnace tile entity.
-
Field Summary
Fields inherited from interface org.cyclops.commoncapabilities.api.capability.temperature.ITemperature
ZERO_CELCIUS
-
Constructor Summary
ConstructorDescriptionVanillaUniversalBucketTemperature
(net.minecraft.world.item.ItemStack itemStack) -
Method Summary
Modifier and TypeMethodDescriptiondouble
A default temperature is active in the target's default state, for example if a machine has just been created and has its default temperature.protected net.neoforged.neoforge.fluids.FluidStack
double
double
double
-
Constructor Details
-
VanillaUniversalBucketTemperature
public VanillaUniversalBucketTemperature(net.minecraft.world.item.ItemStack itemStack)
-
-
Method Details
-
getFluidStack
protected net.neoforged.neoforge.fluids.FluidStack getFluidStack() -
getTemperature
public double getTemperature()- Specified by:
getTemperature
in interfaceITemperature
- Returns:
- The current temperature in degrees Kelvin.
-
getMaximumTemperature
public double getMaximumTemperature()- Specified by:
getMaximumTemperature
in interfaceITemperature
- Returns:
- The maximum temperature the target can have.
-
getMinimumTemperature
public double getMinimumTemperature()- Specified by:
getMinimumTemperature
in interfaceITemperature
- Returns:
- The minimum temperature the target can have.
-
getDefaultTemperature
public double getDefaultTemperature()Description copied from interface:ITemperature
A default temperature is active in the target's default state, for example if a machine has just been created and has its default temperature.- Specified by:
getDefaultTemperature
in interfaceITemperature
- Returns:
- The default temperature the target has.
-