Interface LivingEntityTemperatureTickEvents.AllowTemperatureChange
- 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.AllowTemperatureChange
-
Method Summary
Modifier and TypeMethodDescriptionnet.fabricmc.fabric.api.util.TriStateallowChange(EnvironmentTickContext<? extends net.minecraft.entity.LivingEntity> context, int temperatureChange) Whether this listener should allow a temperature change update to apply.
-
Method Details
-
allowChange
net.fabricmc.fabric.api.util.TriState allowChange(EnvironmentTickContext<? extends net.minecraft.entity.LivingEntity> context, int temperatureChange) Whether this listener should allow a temperature change update to apply.- Parameters:
context- Context of the living entity for the tick.temperatureChange- The actual change in temperature calculated from theLivingEntityTemperatureTickEvents.GetTemperatureChangelistener. 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.
-