allowChange
net.fabricmc.fabric.api.util.TriState allowChange(EnvironmentTickContext<? extends net.minecraft.world.entity.LivingEntity> context,
int soakingChange)
Whether this listener should allow a soaking change update to apply.
- Parameters:
context - Context of the living entity for the tick.
soakingChange - The actual change in soaking ticks calculated from the LivingEntitySoakingTickEvents.GetSoakingChange events. This value is non-zero.
- Returns:
- Return true or false to make the update apply right away, or default to fall back to other listeners.
The default behaviour will be to allow the update.