Interface LivingEntityEnvironmentEvents.SoakChangeEventCallback
- 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.
Event callback for soak change ticks
-
Method Summary
Modifier and TypeMethodDescriptionvoidonSoakChange(EnvironmentController controller, net.minecraft.entity.LivingEntity entity, InitialSoakChangeResult result) Invoked when the soak change should be applied.
-
Method Details
-
onSoakChange
void onSoakChange(EnvironmentController controller, net.minecraft.entity.LivingEntity entity, InitialSoakChangeResult result) Invoked when the soak 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
-