java.lang.Object
org.cyclops.commoncapabilities.modcompat.vanilla.capability.temperature.VanillaCampfireTemperature
All Implemented Interfaces:
ITemperature

public class VanillaCampfireTemperature extends Object implements ITemperature
Temperature capability for vanilla campfire tile entities.
  • Constructor Details

    • VanillaCampfireTemperature

      public VanillaCampfireTemperature(net.minecraft.world.level.block.entity.CampfireBlockEntity campfire)
  • Method Details

    • getTemperature

      public double getTemperature()
      Specified by:
      getTemperature in interface ITemperature
      Returns:
      The current temperature in degrees Kelvin.
    • getMaximumTemperature

      public double getMaximumTemperature()
      Specified by:
      getMaximumTemperature in interface ITemperature
      Returns:
      The maximum temperature the target can have.
    • getMinimumTemperature

      public double getMinimumTemperature()
      Specified by:
      getMinimumTemperature in interface ITemperature
      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 interface ITemperature
      Returns:
      The default temperature the target has.