| Modifier and Type | Method and Description |
|---|---|
void |
ServerLoginHandler.loggedIn(Session session)
Called when a session completes the initial login process and is now in the
ProtocolState.GAME. |
void |
MinecraftProtocol.newClientSession(Session session) |
void |
MinecraftProtocol.newServerSession(Server server,
Session session) |
void |
ServerListener.packetReceived(Session session,
Packet packet) |
void |
ClientListener.packetReceived(Session session,
Packet packet) |
void |
ServerListener.packetSent(Session session,
Packet packet) |
void |
ClientListener.packetSent(Session session,
Packet packet) |
| Modifier and Type | Method and Description |
|---|---|
void |
PacketStateCodec.newClientSession(Session session) |
void |
PacketStateCodec.newServerSession(Server server,
Session session) |
| Modifier and Type | Method and Description |
|---|---|
ServerStatusInfo |
ServerInfoBuilder.buildInfo(Session session) |
void |
ServerPingTimeHandler.handle(Session session,
long pingTime) |
void |
ServerInfoHandler.handle(Session session,
ServerStatusInfo info) |
| Modifier and Type | Method and Description |
|---|---|
List<Session> |
AbstractServer.getSessions() |
List<Session> |
Server.getSessions()
Gets all sessions belonging to this server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractServer.addSession(Session session) |
void |
AbstractServer.removeSession(Session session) |
| Modifier and Type | Method and Description |
|---|---|
Session |
SessionAddedEvent.getSession()
Gets the session involved in this event.
|
Session |
SessionRemovedEvent.getSession()
Gets the session involved in this event.
|
| Constructor and Description |
|---|
SessionAddedEvent(Server server,
Session session)
Creates a new SessionAddedEvent instance.
|
SessionRemovedEvent(Server server,
Session session)
Creates a new SessionRemovedEvent instance.
|
| Modifier and Type | Method and Description |
|---|---|
Session |
DisconnectedEvent.getSession()
Gets the session involved in this event.
|
Session |
PacketSendingEvent.getSession()
Gets the session involved in this event.
|
Session |
DisconnectingEvent.getSession()
Gets the session involved in this event.
|
Session |
PacketErrorEvent.getSession()
Gets the session involved in this event.
|
Session |
ConnectedEvent.getSession()
Gets the session involved in this event.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SessionListener.packetReceived(Session session,
Packet packet)
Called when a session receives a packet.
|
void |
SessionAdapter.packetReceived(Session session,
Packet packet) |
void |
SessionListener.packetSent(Session session,
Packet packet)
Called when a session sends a packet.
|
void |
SessionAdapter.packetSent(Session session,
Packet packet) |
| Constructor and Description |
|---|
ConnectedEvent(Session session)
Creates a new ConnectedEvent instance.
|
DisconnectedEvent(Session session,
net.kyori.adventure.text.Component reason,
Throwable cause)
Creates a new DisconnectedEvent instance.
|
DisconnectingEvent(Session session,
net.kyori.adventure.text.Component reason,
Throwable cause)
Creates a new DisconnectingEvent instance.
|
PacketErrorEvent(Session session,
Throwable cause)
Creates a new SessionErrorEvent instance.
|
PacketSendingEvent(Session session,
Packet packet)
Creates a new PacketSendingEvent instance.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
PacketProtocol.newClientSession(Session session)
Called when a client session is created with this protocol.
|
abstract void |
PacketProtocol.newServerSession(Server server,
Session session)
Called when a server session is created with this protocol.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TcpClientSession |
class |
TcpServerSession |
class |
TcpSession |
| Constructor and Description |
|---|
TcpPacketCodec(Session session,
boolean client) |
TcpPacketCompression(Session session,
boolean validateDecompression) |
TcpPacketSizer(Session session,
int size) |
Copyright © 2023. All rights reserved.