Interface ServerPlayerEvents.CopyFrom

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.CopyFrom
  • Method Details

    • copyFromPlayer

      void copyFromPlayer(ServerPlayerEntity oldPlayer, ServerPlayerEntity newPlayer, boolean alive)
      Called when player data is copied to a new player.
      Parameters:
      oldPlayer - the old player
      newPlayer - the new player
      alive - whether the old player is still alive