java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.effects.TemperatureEffects

public final class TemperatureEffects extends Object
A container class that contains all the various temperature effect types provided by Thermoo. You can, of course, create your own effects for your mod. As an example, see melt damage in Frostiful!

Note that they are actually registered outside the API in ThermooCommonRegisters.

  • Field Details

    • EMPTY

      public static final TemperatureEffect<?> EMPTY
      An empty temperature effect; does nothing. Useful for overriding effects from mods or other datapacks
    • STATUS_EFFECT

      public static final TemperatureEffect<?> STATUS_EFFECT
      Applies StatusEffects to entities based on their temperature
    • SCALING_ATTRIBUTE_MODIFIER

      public static final TemperatureEffect<?> SCALING_ATTRIBUTE_MODIFIER
      Applies scaled EntityAttributeModifiers to entities based on their temperature
    • DAMAGE

      public static final TemperatureEffect<?> DAMAGE
      Applies damage to entities on an interval
      Since:
      1.5
    • FREEZE_DAMAGE_LEGACY

      @Deprecated(since="1.5") public static final TemperatureEffect<?> FREEZE_DAMAGE_LEGACY
      Deprecated.
      As of 1.5, you should use DAMAGE instead, as it does not hardcode a damage source
      Specifically applies DamageSources.freeze() to entities based on their temperature
  • Method Details