Interface LivingEntitySoakingTickEvents.AllowSoakingChange
- Enclosing class:
LivingEntitySoakingTickEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptiondev.yumi.commons.TriStateallowChange(EnvironmentTickContext<? extends net.minecraft.world.entity.LivingEntity> context, int soakingChange) Whether this listener should allow a soaking change update to apply.
-
Method Details
-
allowChange
dev.yumi.commons.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 theLivingEntitySoakingTickEvents.GetSoakingChangeevents. 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.
-