Interface PlayerEnvironmentEvents.BiomeTemperatureChangeTickCallback

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.BiomeTemperatureChangeTickCallback
Callback for passive temperature change ticks
  • Method Details

    • onBiomeTemperatureChange

      void onBiomeTemperatureChange(EnvironmentController controller, net.minecraft.entity.player.PlayerEntity player, net.minecraft.world.biome.Biome biome, InitialTemperatureChangeResult result)
      Invoked when the temperature change should be applied. Note that the change is NOT applied by this event, listeners must apply it themselves.
      Parameters:
      controller - The EnvironmentController relevant to this event
      player - The player being ticked
      biome - The biome the player is in
      result - Stores information about the change to be applied