S
- The State to transition to.public interface IForgeServerPacketHandler<S>
Modifier and Type | Method and Description |
---|---|
S |
handle(PluginMessage message,
ChannelWrapper ch)
Handles any
PluginMessage
packets. |
S |
send(PluginMessage message,
UserConnection con)
Sends any
PluginMessage packets. |
S handle(PluginMessage message, ChannelWrapper ch)
PluginMessage
packets.message
- The PluginMessage
to handle.ch
- The ChannelWrapper
to send packets to.S send(PluginMessage message, UserConnection con)
PluginMessage
packets.message
- The PluginMessage
to send.con
- The UserConnection
to send packets to
or read from.Copyright © 2012–2020 SpigotMC. All rights reserved.