public class ClientPlayerNetworkEvent
extends net.minecraftforge.eventbus.api.Event
Modifier and Type | Class and Description |
---|---|
static class |
ClientPlayerNetworkEvent.LoggedInEvent
Fired when the client player logs in to the server.
|
static class |
ClientPlayerNetworkEvent.LoggedOutEvent
Fired when the player logs out.
|
static class |
ClientPlayerNetworkEvent.RespawnEvent
Fired when the player object respawns, such as dimension changes.
|
Modifier and Type | Field and Description |
---|---|
private PlayerController |
controller |
private NetworkManager |
networkManager |
private ClientPlayerEntity |
player |
Constructor and Description |
---|
ClientPlayerNetworkEvent(PlayerController controller,
ClientPlayerEntity player,
NetworkManager networkManager) |
Modifier and Type | Method and Description |
---|---|
PlayerController |
getController() |
NetworkManager |
getNetworkManager() |
ClientPlayerEntity |
getPlayer() |
private final PlayerController controller
private final ClientPlayerEntity player
private final NetworkManager networkManager
ClientPlayerNetworkEvent(PlayerController controller, ClientPlayerEntity player, NetworkManager networkManager)
@Nullable public PlayerController getController()
@Nullable public ClientPlayerEntity getPlayer()
@Nullable public NetworkManager getNetworkManager()