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
    boolean
    canApplyChange(int change, net.minecraft.entity.player.PlayerEntity player)
    Checks that a player can have the given change applied as a passive temperature change.
  • Method Details

    • canApplyChange

      boolean canApplyChange(int change, net.minecraft.entity.player.PlayerEntity 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 true if this callback will allow for the change to be applied to the player. If this returns false, further processing is cancelled and the change is not applied.