Class ClientPlayerNetworkEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ClientPlayerNetworkEvent
Direct Known Subclasses:
ClientPlayerNetworkEvent.LoggedInEvent, ClientPlayerNetworkEvent.LoggedOutEvent, ClientPlayerNetworkEvent.RespawnEvent

public class ClientPlayerNetworkEvent extends net.minecraftforge.eventbus.api.Event
Client side player connectivity events.
  • Field Details

  • Constructor Details

  • Method Details

    • getMultiPlayerGameMode

      @Nullable public MultiPlayerGameMode getMultiPlayerGameMode()
      Returns:
      the player controller for the client side
    • getPlayer

      @Nullable public LocalPlayer getPlayer()
      Returns:
      the player instance (if present - may be null)
    • getConnection

      @Nullable public Connection getConnection()
      Returns:
      the impl connection (if present - may be null)