Interface TemperatureChangeEvents.AfterChange

Enclosing class:
TemperatureChangeEvents
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface TemperatureChangeEvents.AfterChange
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterChange(net.minecraft.world.entity.LivingEntity target, int oldTemperature, int newTemperature, TemperatureChange context)
    Invoked after the change is applied.
  • Method Details

    • afterChange

      void afterChange(net.minecraft.world.entity.LivingEntity target, int oldTemperature, int newTemperature, TemperatureChange context)
      Invoked after the change is applied.
      Parameters:
      target - The target of the temperature change.
      oldTemperature - The target's temperature prior to the change.
      newTemperature - The target's temperature after the change.
      context - Additional context of the temperature change.