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.

@FunctionalInterface public static interface LivingEntityEnvironmentEvents.SoakChangeEventCallback
Event callback for soak change ticks
  • 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 - The EnvironmentController relevant to this event
      entity - The entity affected by this event
      result - Stores information about the change to be applied