Interface ServerPlayerEvents.AfterRespawn

Enclosing class:
ServerPlayerEvents
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 ServerPlayerEvents.AfterRespawn
  • Method Summary

    Modifier and Type Method Description
    void afterRespawn​(net.minecraft.server.network.ServerPlayerEntity oldPlayer, net.minecraft.server.network.ServerPlayerEntity newPlayer, boolean alive)
    Called after player a has been respawned.
  • Method Details

    • afterRespawn

      void afterRespawn​(net.minecraft.server.network.ServerPlayerEntity oldPlayer, net.minecraft.server.network.ServerPlayerEntity newPlayer, boolean alive)
      Called after player a has been respawned.
      Parameters:
      oldPlayer - the old player
      newPlayer - the new player
      alive - whether the old player is still alive