Enum Class HeatingModes

java.lang.Object
java.lang.Enum<HeatingModes>
com.github.thedeathlycow.thermoo.api.temperature.HeatingModes
All Implemented Interfaces:
HeatingMode, Serializable, Comparable<HeatingModes>, Constable, net.minecraft.util.StringIdentifiable

public enum HeatingModes extends Enum<HeatingModes> implements HeatingMode, net.minecraft.util.StringIdentifiable
The three primary modes for adding and removing heat from a TemperatureAware.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>

    Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable

    net.minecraft.util.StringIdentifiable.BasicCodec<S extends net.minecraft.util.StringIdentifiable>, net.minecraft.util.StringIdentifiable.EnumCodec<E extends Enum<E> & net.minecraft.util.StringIdentifiable>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Applies temperature changes absolutely - ignoring all resistance in all conditions.
    Always applies the relevant resistance for the change - cold resistance when the change is negative (decreasing temperature) and heat resistance when the change is positive (increasing temperature).
    Only applies thermal resistance when the target is currently in the relevant temperature range.
  • Field Summary

    Fields inherited from interface net.minecraft.util.StringIdentifiable

    CACHED_MAP_THRESHOLD
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns the enum constant of this class with the specified name.
    static HeatingModes[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.github.thedeathlycow.thermoo.api.temperature.HeatingMode

    applyResistance
  • Enum Constant Details

    • ABSOLUTE

      public static final HeatingModes ABSOLUTE
      Applies temperature changes absolutely - ignoring all resistance in all conditions. Used as the default mode in commands or other debug environments.
    • ACTIVE

      public static final HeatingModes ACTIVE
      Always applies the relevant resistance for the change - cold resistance when the change is negative (decreasing temperature) and heat resistance when the change is positive (increasing temperature).

      Used for non-environmental effects, like a Frostologer freezing their victim or an Enchantment that drains heat.

    • PASSIVE

      public static final HeatingModes PASSIVE
      Only applies thermal resistance when the target is currently in the relevant temperature range. For example, cold resistance is only applied to targets that are cold; and heat resistance only to targets that are warm.

      Used for passive effects, such as the temperature change of standing on ice or being near to a torch. This is not used for the environment temperature in ServerPlayerEnvironmentTickEvents.

  • Method Details

    • values

      public static HeatingModes[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HeatingModes valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • asString

      public String asString()
      Specified by:
      asString in interface net.minecraft.util.StringIdentifiable