Interface PlayerEnvironmentEvents.TemperatureChangeEventCallback

Enclosing class:
PlayerEnvironmentEvents
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 PlayerEnvironmentEvents.TemperatureChangeEventCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    net.fabricmc.fabric.api.util.TriState
    canApplyChange(int change, net.minecraft.world.entity.player.Player player)
    Checks that a player can have the given change applied as a passive temperature change.
  • Method Details

    • canApplyChange

      net.fabricmc.fabric.api.util.TriState canApplyChange(int change, net.minecraft.world.entity.player.Player player)
      Checks that a player can have the given change applied as a passive temperature change.
      Parameters:
      change - The passive temperature change to be applied
      player - The player to check
      Returns:
      Returns TriState.TRUE or TriState.FALSE if this callback should allow (or not allow) for the change to be applied to the player. If this returns TriState.FALSE, falls back to further processing.