Interface LivingEntitySoakingTickEvents.GetSoakingChange

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.

@FunctionalInterface public static interface LivingEntitySoakingTickEvents.GetSoakingChange
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    addChange(EnvironmentTickContext<? extends net.minecraft.entity.LivingEntity> context)
    Calculates the soaking tick change that this listener wants to add to a living entity this tick.
  • Method Details

    • addChange

      int addChange(EnvironmentTickContext<? extends net.minecraft.entity.LivingEntity> context)
      Calculates the soaking tick change that this listener wants to add to a living entity this tick.
      Parameters:
      context - Context of the living entity for the tick.
      Returns:
      Return the soaking tick change that this listener wants to apply to the entity in the context. This value is added to the values supplied by the other listeners.