public static class ClientPlayerNetworkEvent.RespawnEvent extends ClientPlayerNetworkEvent
ClientPlayerNetworkEvent.LoggedInEvent, ClientPlayerNetworkEvent.LoggedOutEvent, ClientPlayerNetworkEvent.RespawnEvent
Modifier and Type | Field and Description |
---|---|
private ClientPlayerEntity |
oldPlayer |
Constructor and Description |
---|
RespawnEvent(PlayerController pc,
ClientPlayerEntity oldPlayer,
ClientPlayerEntity newPlayer,
NetworkManager networkManager) |
Modifier and Type | Method and Description |
---|---|
ClientPlayerEntity |
getNewPlayer() |
ClientPlayerEntity |
getOldPlayer() |
getController, getNetworkManager, getPlayer
private final ClientPlayerEntity oldPlayer
public RespawnEvent(PlayerController pc, ClientPlayerEntity oldPlayer, ClientPlayerEntity newPlayer, NetworkManager networkManager)
public ClientPlayerEntity getOldPlayer()
public ClientPlayerEntity getNewPlayer()