Class LivingEntitySoakingTickEvents
java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.event.LivingEntitySoakingTickEvents
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.fabricmc.fabric.api.event.Event<LivingEntitySoakingTickEvents.AllowSoakingChange> Checks if the final soaking change update calculated byGET_SOAKING_CHANGEshould be allowed to be applied to a living entity this tick.static final net.fabricmc.fabric.api.event.Event<LivingEntitySoakingTickEvents.AllowSoakingUpdate> Checks if the soaking change update tick for a living entity should be allowed to proceed.static final net.fabricmc.fabric.api.event.Event<LivingEntitySoakingTickEvents.GetSoakingChange> Gets the soaking change increase that should be applied to a living entity this update by summing all values supplied by listeners. -
Method Summary
-
Field Details
-
ALLOW_SOAKING_UPDATE
public static final net.fabricmc.fabric.api.event.Event<LivingEntitySoakingTickEvents.AllowSoakingUpdate> ALLOW_SOAKING_UPDATEChecks 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_CHANGEGets 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_CHANGEChecks if the final soaking change update calculated byGET_SOAKING_CHANGEshould 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.
-