Class LivingEntitySoakingTickEvents

java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.event.LivingEntitySoakingTickEvents

public final class LivingEntitySoakingTickEvents extends Object
Events for ticking soaking changes on entities on the logical server. These events will apply to spectator entities, but will not apply to dead or removed entities.

These events are invoked in the following order:

  • ALLOW_SOAKING_UPDATE
  • GET_SOAKING_CHANGE
  • ALLOW_SOAKING_CHANGE
  • Field Details

    • ALLOW_SOAKING_UPDATE

      public static final net.fabricmc.fabric.api.event.Event<LivingEntitySoakingTickEvents.AllowSoakingUpdate> ALLOW_SOAKING_UPDATE
      Checks if the soaking change update tick for a living entity should be allowed to proceed. Returning any non-default value will force the update to proceed right away. By default, the update will be allowed to proceed.
    • GET_SOAKING_CHANGE

      public static final net.fabricmc.fabric.api.event.Event<LivingEntitySoakingTickEvents.GetSoakingChange> GET_SOAKING_CHANGE
      Gets the soaking change increase that should be applied to a living entity this update by summing all values supplied by listeners.

      If the listeners return a sum total of 0, then this event will return -1 (to dry out entities).

    • ALLOW_SOAKING_CHANGE

      public static final net.fabricmc.fabric.api.event.Event<LivingEntitySoakingTickEvents.AllowSoakingChange> ALLOW_SOAKING_CHANGE
      Checks if the final soaking change update calculated by GET_SOAKING_CHANGE should be allowed to be applied to a living entity this tick. Returning any non-default value will force the update to be applied right away. By default, the update will be allowed to be applied.