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.
-
Method Summary
Modifier and TypeMethodDescriptionintaddTemperature(EnvironmentTickContext<? extends net.minecraft.entity.LivingEntity> context) Calculates the temperature change that this listener wants to add to a living entity this tick.
-
Method Details
-
addTemperature
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.
-