Interface LivingEntityTemperatureTickEvents.AllowTemperatureUpdate

Enclosing class:
LivingEntityTemperatureTickEvents
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 LivingEntityTemperatureTickEvents.AllowTemperatureUpdate
  • Method Summary

    Modifier and Type
    Method
    Description
    net.fabricmc.fabric.api.util.TriState
    allowUpdate(EnvironmentTickContext<? extends net.minecraft.entity.LivingEntity> context)
    Whether this listener should allow a temperature change update to begin.
  • Method Details

    • allowUpdate

      net.fabricmc.fabric.api.util.TriState allowUpdate(EnvironmentTickContext<? extends net.minecraft.entity.LivingEntity> context)
      Whether this listener should allow a temperature change update to begin.
      Parameters:
      context - Context of the living entity for the tick.
      Returns:
      Return true or false to make the update happen right away, or default to fall back to other listeners. The default behaviour will be to allow the update.