Package net.minecraftforge.client.event
Class ClientPlayerNetworkEvent.RespawnEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.client.event.ClientPlayerNetworkEvent
-
- net.minecraftforge.client.event.ClientPlayerNetworkEvent.RespawnEvent
-
- Enclosing class:
- ClientPlayerNetworkEvent
public static class ClientPlayerNetworkEvent.RespawnEvent extends ClientPlayerNetworkEvent
Fired when the player object respawns, such as dimension changes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.client.event.ClientPlayerNetworkEvent
ClientPlayerNetworkEvent.LoggedInEvent, ClientPlayerNetworkEvent.LoggedOutEvent, ClientPlayerNetworkEvent.RespawnEvent
-
-
Field Summary
Fields Modifier and Type Field Description private ClientPlayerEntity
oldPlayer
-
Constructor Summary
Constructors Constructor Description RespawnEvent(PlayerController pc, ClientPlayerEntity oldPlayer, ClientPlayerEntity newPlayer, NetworkManager networkManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientPlayerEntity
getNewPlayer()
ClientPlayerEntity
getOldPlayer()
-
Methods inherited from class net.minecraftforge.client.event.ClientPlayerNetworkEvent
getController, getNetworkManager, getPlayer
-
-
-
-
Field Detail
-
oldPlayer
private final ClientPlayerEntity oldPlayer
-
-
Constructor Detail
-
RespawnEvent
public RespawnEvent(PlayerController pc, ClientPlayerEntity oldPlayer, ClientPlayerEntity newPlayer, NetworkManager networkManager)
-
-
Method Detail
-
getOldPlayer
public ClientPlayerEntity getOldPlayer()
-
getNewPlayer
public ClientPlayerEntity getNewPlayer()
-
-