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

    • getController

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

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

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