Interface LivingEntityTemperatureTickEvents.GetTemperatureChange

Enclosing class:
LivingEntityTemperatureTickEvents
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 LivingEntityTemperatureTickEvents.GetTemperatureChange
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    addTemperature(EnvironmentTickContext<? extends net.minecraft.world.entity.LivingEntity> context)
    Calculates the temperature change that this listener wants to add to a living entity this tick.
  • Method Details

    • addTemperature

      int addTemperature(EnvironmentTickContext<? extends net.minecraft.world.entity.LivingEntity> context)
      Calculates the temperature change that this listener wants to add to a living entity this tick.
      Parameters:
      context - Context of the living entity for the tick.
      Returns:
      Return the temperature point change that this listener wants to apply to the entity in the context. This value is added to the values supplied by the other listeners.