Interface ProtocolManager
public interface ProtocolManager
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault Object
getChannel
(UUID uuid) default Collection
<Object> getClientVersion
(Object channel) default User
default Collection
<User> getUsers()
default void
receivePacket
(Object channel, PacketWrapper<?> wrapper) void
receivePacket
(Object channel, Object byteBuf) default void
receivePackets
(Object channel, Object... byteBuf) default void
receivePacketSilently
(Object channel, PacketWrapper<?> wrapper) void
receivePacketSilently
(Object channel, Object byteBuf) default void
receivePacketsSilently
(Object channel, Object... byteBuf) default User
removeUser
(Object channel) default void
sendPacket
(Object channel, PacketWrapper<?> wrapper) void
sendPacket
(Object channel, Object byteBuf) default void
sendPackets
(Object channel, Object... byteBuf) default void
sendPacketSilently
(Object channel, PacketWrapper<?> wrapper) void
sendPacketSilently
(Object channel, Object byteBuf) default void
sendPacketsSilently
(Object channel, Object... byteBuf) default void
setClientVersion
(Object channel, ClientVersion version) default void
default Object[]
transformWrappers
(PacketWrapper<?> wrapper, Object channel, boolean outgoing) default void
writePacket
(Object channel, PacketWrapper<?> wrapper) void
writePacket
(Object channel, Object byteBuf) default void
writePackets
(Object channel, Object... byteBuf) default void
writePacketSilently
(Object channel, PacketWrapper<?> wrapper) void
writePacketSilently
(Object channel, Object byteBuf) default void
writePacketsSilently
(Object channel, Object... byteBuf)
-
Field Details
-
CHANNELS
-
USERS
-
-
Method Details
-
getUsers
-
getChannels
-
getPlatformVersion
ProtocolVersion getPlatformVersion() -
sendPacket
-
sendPacketSilently
-
writePacket
-
writePacketSilently
-
receivePacket
-
receivePacketSilently
-
getClientVersion
-
sendPackets
-
sendPacketsSilently
-
writePackets
-
writePacketsSilently
-
receivePackets
-
receivePacketsSilently
-
setClientVersion
-
transformWrappers
@Internal default Object[] transformWrappers(PacketWrapper<?> wrapper, Object channel, boolean outgoing) -
sendPacket
-
sendPacketSilently
-
writePacket
-
writePacketSilently
-
receivePacket
-
receivePacketSilently
-
getUser
-
removeUser
-
setUser
-
getChannel
-