@FunctionalInterface public static interface ServerPlayerEvents.CopyFrom
Modifier and Type | Method and Description |
---|---|
void |
copyFromPlayer(net.minecraft.server.network.ServerPlayerEntity oldPlayer,
net.minecraft.server.network.ServerPlayerEntity newPlayer,
boolean alive)
Called when player data is copied to a new player.
|
void copyFromPlayer(net.minecraft.server.network.ServerPlayerEntity oldPlayer, net.minecraft.server.network.ServerPlayerEntity newPlayer, boolean alive)
oldPlayer
- the old playernewPlayer
- the new playeralive
- whether the old player is still alive