Interface LivingEntityEnvironmentEvents.TemperatureChangeEventCallback
- Enclosing class:
- LivingEntityEnvironmentEvents
- 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 LivingEntityEnvironmentEvents.TemperatureChangeEventCallback
Event callback for temperature change ticks
-
Method Summary
Modifier and TypeMethodDescriptionvoidonTemperatureChange(EnvironmentController controller, net.minecraft.entity.LivingEntity entity, InitialTemperatureChangeResult result) Invoked when the temperature change should be applied.
-
Method Details
-
onTemperatureChange
void onTemperatureChange(EnvironmentController controller, net.minecraft.entity.LivingEntity entity, InitialTemperatureChangeResult result) Invoked when the temperature change should be applied. Note that the change is NOT applied by this event, listeners must apply it themselves.- Parameters:
controller- TheEnvironmentControllerrelevant to this evententity- The entity affected by this eventresult- Stores information about the change to be applied
-