Skip navigation links
A B C D E G H I N P R S T U V W 

A

AbstractServer - Class in com.github.steveice10.packetlib
 
AbstractServer(String, int, Supplier<? extends PacketProtocol>) - Constructor for class com.github.steveice10.packetlib.AbstractServer
 
addListener(ServerListener) - Method in class com.github.steveice10.packetlib.AbstractServer
 
addListener(ServerListener) - Method in interface com.github.steveice10.packetlib.Server
Adds a listener to this server.
addListener(SessionListener) - Method in interface com.github.steveice10.packetlib.Session
Adds a listener to this session.
addListener(SessionListener) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
addSession(Session) - Method in class com.github.steveice10.packetlib.AbstractServer
 
AESEncryption - Class in com.github.steveice10.packetlib.crypt
An encryption implementation using "AES/CFB8/NoPadding" encryption.
AESEncryption(Key) - Constructor for class com.github.steveice10.packetlib.crypt.AESEncryption
Creates a new AESEncryption instance.
ATTEMPT_SRV_RESOLVE - Static variable in class com.github.steveice10.packetlib.BuiltinFlags
When set to false, an SRV record resolve is not attempted.

B

BasePacketCodecHelper - Class in com.github.steveice10.packetlib.codec
 
BasePacketCodecHelper() - Constructor for class com.github.steveice10.packetlib.codec.BasePacketCodecHelper
 
bind() - Method in class com.github.steveice10.packetlib.AbstractServer
 
bind(boolean) - Method in class com.github.steveice10.packetlib.AbstractServer
 
bind(boolean, Runnable) - Method in class com.github.steveice10.packetlib.AbstractServer
 
bind() - Method in interface com.github.steveice10.packetlib.Server
Binds the listener to its host and port.
bind(boolean) - Method in interface com.github.steveice10.packetlib.Server
Binds the listener to its host and port.
bind(boolean, Runnable) - Method in interface com.github.steveice10.packetlib.Server
Binds the listener to its host and port.
bindImpl(boolean, Runnable) - Method in class com.github.steveice10.packetlib.tcp.TcpServer
 
BufferedPacket - Class in com.github.steveice10.packetlib.packet
 
BufferedPacket(Class<? extends Packet>, byte[]) - Constructor for class com.github.steveice10.packetlib.packet.BufferedPacket
 
BuiltinFlags - Class in com.github.steveice10.packetlib
Built-in PacketLib session flags.

C

call(ServerListener) - Method in class com.github.steveice10.packetlib.event.server.ServerBoundEvent
 
call(ServerListener) - Method in class com.github.steveice10.packetlib.event.server.ServerClosedEvent
 
call(ServerListener) - Method in class com.github.steveice10.packetlib.event.server.ServerClosingEvent
 
call(ServerListener) - Method in interface com.github.steveice10.packetlib.event.server.ServerEvent
Calls the event.
call(ServerListener) - Method in class com.github.steveice10.packetlib.event.server.SessionAddedEvent
 
call(ServerListener) - Method in class com.github.steveice10.packetlib.event.server.SessionRemovedEvent
 
call(SessionListener) - Method in class com.github.steveice10.packetlib.event.session.ConnectedEvent
 
call(SessionListener) - Method in class com.github.steveice10.packetlib.event.session.DisconnectedEvent
 
call(SessionListener) - Method in class com.github.steveice10.packetlib.event.session.DisconnectingEvent
 
call(SessionListener) - Method in class com.github.steveice10.packetlib.event.session.PacketErrorEvent
 
call(SessionListener) - Method in class com.github.steveice10.packetlib.event.session.PacketSendingEvent
 
call(SessionListener) - Method in interface com.github.steveice10.packetlib.event.session.SessionEvent
Calls the event.
callEvent(SessionEvent) - Method in interface com.github.steveice10.packetlib.Session
Calls an event on the listeners of this session.
callEvent(SessionEvent) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
callPacketReceived(Packet) - Method in interface com.github.steveice10.packetlib.Session
Notifies all listeners that a packet was just received.
callPacketReceived(Packet) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
callPacketSent(Packet) - Method in interface com.github.steveice10.packetlib.Session
Notifies all listeners that a packet was just sent.
callPacketSent(Packet) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
channelActive(ChannelHandlerContext) - Method in class com.github.steveice10.packetlib.tcp.TcpServerSession
 
channelActive(ChannelHandlerContext) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
channelInactive(ChannelHandlerContext) - Method in class com.github.steveice10.packetlib.tcp.TcpServerSession
 
channelInactive(ChannelHandlerContext) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
clearPackets() - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Clears all currently registered packets.
CLIENT_PROXIED_ADDRESS - Static variable in class com.github.steveice10.packetlib.BuiltinFlags
 
close() - Method in class com.github.steveice10.packetlib.AbstractServer
 
close(boolean) - Method in class com.github.steveice10.packetlib.AbstractServer
 
close(boolean, Runnable) - Method in class com.github.steveice10.packetlib.AbstractServer
 
close() - Method in interface com.github.steveice10.packetlib.Server
Closes the listener.
close(boolean) - Method in interface com.github.steveice10.packetlib.Server
Closes the listener.
close(boolean, Runnable) - Method in interface com.github.steveice10.packetlib.Server
Closes the listener.
closeImpl(boolean, Runnable) - Method in class com.github.steveice10.packetlib.tcp.TcpServer
 
com.github.steveice10.packetlib - package com.github.steveice10.packetlib
 
com.github.steveice10.packetlib.codec - package com.github.steveice10.packetlib.codec
 
com.github.steveice10.packetlib.crypt - package com.github.steveice10.packetlib.crypt
 
com.github.steveice10.packetlib.event.server - package com.github.steveice10.packetlib.event.server
 
com.github.steveice10.packetlib.event.session - package com.github.steveice10.packetlib.event.session
 
com.github.steveice10.packetlib.helper - package com.github.steveice10.packetlib.helper
 
com.github.steveice10.packetlib.packet - package com.github.steveice10.packetlib.packet
 
com.github.steveice10.packetlib.tcp - package com.github.steveice10.packetlib.tcp
 
connect() - Method in interface com.github.steveice10.packetlib.Session
Connects this session to its host and port.
connect(boolean) - Method in interface com.github.steveice10.packetlib.Session
Connects this session to its host and port.
connect(boolean) - Method in class com.github.steveice10.packetlib.tcp.TcpClientSession
 
connect() - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
connect(boolean) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
connected(ConnectedEvent) - Method in class com.github.steveice10.packetlib.event.session.SessionAdapter
 
connected(ConnectedEvent) - Method in interface com.github.steveice10.packetlib.event.session.SessionListener
Called when a session connects.
ConnectedEvent - Class in com.github.steveice10.packetlib.event.session
Called when the session connects.
ConnectedEvent(Session) - Constructor for class com.github.steveice10.packetlib.event.session.ConnectedEvent
Creates a new ConnectedEvent instance.
createClientboundPacket(int, ByteBuf, H) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Creates a new instance of a clientbound packet with the given id and read the clientbound input.
createHelper() - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Creates a new PacketCodecHelper that can be used for each session.
createServerboundPacket(int, ByteBuf, H) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Creates a new instance of a serverbound packet with the given id and read the serverbound input.

D

decrypt(byte[], int, int, byte[], int) - Method in class com.github.steveice10.packetlib.crypt.AESEncryption
 
decrypt(byte[], int, int, byte[], int) - Method in interface com.github.steveice10.packetlib.crypt.PacketEncryption
Decrypts the given data.
DefaultPacketHeader - Class in com.github.steveice10.packetlib.packet
The default packet header, using a varint packet length and id.
DefaultPacketHeader() - Constructor for class com.github.steveice10.packetlib.packet.DefaultPacketHeader
 
deserialize(ByteBuf, H, PacketDefinition<T, H>) - Method in interface com.github.steveice10.packetlib.codec.PacketSerializer
 
deserialize(ByteBuf, PacketCodecHelper, PacketDefinition<BufferedPacket, PacketCodecHelper>) - Method in class com.github.steveice10.packetlib.packet.BufferedPacket
 
determineTransportMethod() - Static method in class com.github.steveice10.packetlib.helper.TransportHelper
 
disconnect(String) - Method in interface com.github.steveice10.packetlib.Session
Disconnects the session.
disconnect(String, Throwable) - Method in interface com.github.steveice10.packetlib.Session
Disconnects the session.
disconnect(String, Throwable) - Method in class com.github.steveice10.packetlib.tcp.TcpClientSession
 
disconnect(String) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
disconnect(String, Throwable) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
disconnected(DisconnectedEvent) - Method in class com.github.steveice10.packetlib.event.session.SessionAdapter
 
disconnected(DisconnectedEvent) - Method in interface com.github.steveice10.packetlib.event.session.SessionListener
Called when a session is disconnected.
DisconnectedEvent - Class in com.github.steveice10.packetlib.event.session
Called when the session is disconnected.
DisconnectedEvent(Session, String) - Constructor for class com.github.steveice10.packetlib.event.session.DisconnectedEvent
Creates a new DisconnectedEvent instance.
DisconnectedEvent(Session, String, Throwable) - Constructor for class com.github.steveice10.packetlib.event.session.DisconnectedEvent
Creates a new DisconnectedEvent instance.
disconnecting(DisconnectingEvent) - Method in class com.github.steveice10.packetlib.event.session.SessionAdapter
 
disconnecting(DisconnectingEvent) - Method in interface com.github.steveice10.packetlib.event.session.SessionListener
Called when a session is about to disconnect.
DisconnectingEvent - Class in com.github.steveice10.packetlib.event.session
Called when the session is about to disconnect.
DisconnectingEvent(Session, String) - Constructor for class com.github.steveice10.packetlib.event.session.DisconnectingEvent
Creates a new DisconnectingEvent instance.
DisconnectingEvent(Session, String, Throwable) - Constructor for class com.github.steveice10.packetlib.event.session.DisconnectingEvent
Creates a new DisconnectingEvent instance.

E

ENABLE_CLIENT_PROXY_PROTOCOL - Static variable in class com.github.steveice10.packetlib.BuiltinFlags
 
enableEncryption(PacketEncryption) - Method in interface com.github.steveice10.packetlib.Session
Enables encryption for this session.
enableEncryption(PacketEncryption) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
encode(ChannelHandlerContext, Packet, ByteBuf) - Method in class com.github.steveice10.packetlib.tcp.TcpPacketCodec
 
encode(ChannelHandlerContext, ByteBuf, ByteBuf) - Method in class com.github.steveice10.packetlib.tcp.TcpPacketCompression
 
encode(ChannelHandlerContext, ByteBuf, ByteBuf) - Method in class com.github.steveice10.packetlib.tcp.TcpPacketEncryptor
 
encode(ChannelHandlerContext, ByteBuf, ByteBuf) - Method in class com.github.steveice10.packetlib.tcp.TcpPacketSizer
 
encrypt(byte[], int, int, byte[], int) - Method in class com.github.steveice10.packetlib.crypt.AESEncryption
 
encrypt(byte[], int, int, byte[], int) - Method in interface com.github.steveice10.packetlib.crypt.PacketEncryption
Encrypts the given data.
exceptionCaught(ChannelHandlerContext, Throwable) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 

G

getAddress() - Method in class com.github.steveice10.packetlib.ProxyInfo
Gets the proxy's network address.
getCause() - Method in class com.github.steveice10.packetlib.event.session.DisconnectedEvent
Gets the Throwable responsible for the session disconnecting.
getCause() - Method in class com.github.steveice10.packetlib.event.session.DisconnectingEvent
Gets the Throwable responsible for the session disconnecting.
getCause() - Method in class com.github.steveice10.packetlib.event.session.PacketErrorEvent
Gets the Throwable responsible for the error.
getChannel() - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
getClientboundClass(int) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Gets the packet class for a packet id.
getClientboundDefinition(int) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Gets the clientbound packet definition for the given packet id.
getClientboundId(Class<? extends Packet>) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Gets the registered id of a clientbound packet class.
getClientboundId(Packet) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Gets the registered id of a clientbound Packet instance.
getCodecHelper() - Method in interface com.github.steveice10.packetlib.Session
Gets the session's PacketCodecHelper.
getCodecHelper() - Method in class com.github.steveice10.packetlib.tcp.TcpClientSession
 
getCodecHelper() - Method in class com.github.steveice10.packetlib.tcp.TcpServerSession
 
getCompressionThreshold() - Method in interface com.github.steveice10.packetlib.Session
Gets the compression packet length threshold for this session (-1 = disabled).
getCompressionThreshold() - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
getConnectTimeout() - Method in interface com.github.steveice10.packetlib.Session
Gets the connect timeout for this session in seconds.
getConnectTimeout() - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
getDecryptOutputSize(int) - Method in class com.github.steveice10.packetlib.crypt.AESEncryption
 
getDecryptOutputSize(int) - Method in interface com.github.steveice10.packetlib.crypt.PacketEncryption
Gets the output size from decrypting.
getEncryptOutputSize(int) - Method in class com.github.steveice10.packetlib.crypt.AESEncryption
 
getEncryptOutputSize(int) - Method in interface com.github.steveice10.packetlib.crypt.PacketEncryption
Gets the output size from encrypting.
getFlag(String) - Method in interface com.github.steveice10.packetlib.Session
Gets the value of the given flag as an instance of the given type.
getFlag(String, T) - Method in interface com.github.steveice10.packetlib.Session
Gets the value of the given flag as an instance of the given type.
getFlag(String, T) - Method in class com.github.steveice10.packetlib.tcp.TcpServerSession
 
getFlag(String) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
getFlag(String, T) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
getFlags() - Method in interface com.github.steveice10.packetlib.Session
Gets this session's set flags.
getFlags() - Method in class com.github.steveice10.packetlib.tcp.TcpServerSession
 
getFlags() - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
getGlobalFlag(String) - Method in class com.github.steveice10.packetlib.AbstractServer
 
getGlobalFlag(String, T) - Method in class com.github.steveice10.packetlib.AbstractServer
 
getGlobalFlag(String) - Method in interface com.github.steveice10.packetlib.Server
Gets the value of the given flag as an instance of the given type.
getGlobalFlag(String, T) - Method in interface com.github.steveice10.packetlib.Server
Gets the value of the given flag as an instance of the given type.
getGlobalFlags() - Method in class com.github.steveice10.packetlib.AbstractServer
 
getGlobalFlags() - Method in interface com.github.steveice10.packetlib.Server
Gets this server's set flags.
getHost() - Method in class com.github.steveice10.packetlib.AbstractServer
 
getHost() - Method in interface com.github.steveice10.packetlib.Server
Gets the host the session is listening on.
getHost() - Method in interface com.github.steveice10.packetlib.Session
Gets the host the session is connected to.
getHost() - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
getId() - Method in class com.github.steveice10.packetlib.codec.PacketDefinition
Returns the id of the packet.
getLengthSize() - Method in class com.github.steveice10.packetlib.packet.DefaultPacketHeader
 
getLengthSize(int) - Method in class com.github.steveice10.packetlib.packet.DefaultPacketHeader
 
getLengthSize() - Method in interface com.github.steveice10.packetlib.packet.PacketHeader
Gets the size of the header's length value.
getLengthSize(int) - Method in interface com.github.steveice10.packetlib.packet.PacketHeader
Gets the size of the header's length value.
getListeners() - Method in class com.github.steveice10.packetlib.AbstractServer
 
getListeners() - Method in interface com.github.steveice10.packetlib.Server
Gets the listeners listening on this session.
getListeners() - Method in interface com.github.steveice10.packetlib.Session
Gets the listeners listening on this session.
getListeners() - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
getLocalAddress() - Method in interface com.github.steveice10.packetlib.Session
Gets the local address of the session.
getLocalAddress() - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
getPacket() - Method in class com.github.steveice10.packetlib.event.session.PacketSendingEvent
Gets the packet involved in this event as the required type.
getPacketClass() - Method in class com.github.steveice10.packetlib.codec.PacketDefinition
Returns the class of the packet.
getPacketClass() - Method in class com.github.steveice10.packetlib.packet.BufferedPacket
 
getPacketHeader() - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Gets the packet header of this protocol.
getPacketProtocol() - Method in class com.github.steveice10.packetlib.AbstractServer
 
getPacketProtocol() - Method in interface com.github.steveice10.packetlib.Server
Gets the packet protocol of the server.
getPacketProtocol() - Method in interface com.github.steveice10.packetlib.Session
Gets the packet protocol of the session.
getPacketProtocol() - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
getPassword() - Method in class com.github.steveice10.packetlib.ProxyInfo
Gets the proxy's authentication password.
getPort() - Method in class com.github.steveice10.packetlib.AbstractServer
 
getPort() - Method in interface com.github.steveice10.packetlib.Server
Gets the port the session is listening on.
getPort() - Method in interface com.github.steveice10.packetlib.Session
Gets the port the session is connected to.
getPort() - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
getReadTimeout() - Method in interface com.github.steveice10.packetlib.Session
Gets the read timeout for this session in seconds.
getReadTimeout() - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
getReason() - Method in class com.github.steveice10.packetlib.event.session.DisconnectedEvent
Gets the reason given for the session disconnecting.
getReason() - Method in class com.github.steveice10.packetlib.event.session.DisconnectingEvent
Gets the reason given for the session disconnecting.
getRemoteAddress() - Method in interface com.github.steveice10.packetlib.Session
Gets the remote address of the session.
getRemoteAddress() - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
getSerializer() - Method in class com.github.steveice10.packetlib.codec.PacketDefinition
Returns the PacketSerializer of the packet.
getServer() - Method in class com.github.steveice10.packetlib.event.server.ServerBoundEvent
Gets the server involved in this event.
getServer() - Method in class com.github.steveice10.packetlib.event.server.ServerClosedEvent
Gets the server involved in this event.
getServer() - Method in class com.github.steveice10.packetlib.event.server.ServerClosingEvent
Gets the server involved in this event.
getServer() - Method in class com.github.steveice10.packetlib.event.server.SessionAddedEvent
Gets the server involved in this event.
getServer() - Method in class com.github.steveice10.packetlib.event.server.SessionRemovedEvent
Gets the server involved in this event.
getServerboundClass(int) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Gets the packet class for a packet id.
getServerboundDefinition(int) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Gets the serverbound packet definition for the given packet id.
getServerboundId(Class<? extends Packet>) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Gets the registered id of a serverbound packet class.
getServerboundId(Packet) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Gets the registered id of a serverbound Packet instance.
getSession() - Method in class com.github.steveice10.packetlib.event.server.SessionAddedEvent
Gets the session involved in this event.
getSession() - Method in class com.github.steveice10.packetlib.event.server.SessionRemovedEvent
Gets the session involved in this event.
getSession() - Method in class com.github.steveice10.packetlib.event.session.ConnectedEvent
Gets the session involved in this event.
getSession() - Method in class com.github.steveice10.packetlib.event.session.DisconnectedEvent
Gets the session involved in this event.
getSession() - Method in class com.github.steveice10.packetlib.event.session.DisconnectingEvent
Gets the session involved in this event.
getSession() - Method in class com.github.steveice10.packetlib.event.session.PacketErrorEvent
Gets the session involved in this event.
getSession() - Method in class com.github.steveice10.packetlib.event.session.PacketSendingEvent
Gets the session involved in this event.
getSessions() - Method in class com.github.steveice10.packetlib.AbstractServer
 
getSessions() - Method in interface com.github.steveice10.packetlib.Server
Gets all sessions belonging to this server.
getSRVRecordPrefix() - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Gets the prefix used when locating SRV records for this protocol.
getType() - Method in class com.github.steveice10.packetlib.ProxyInfo
Gets the proxy's type.
getUsername() - Method in class com.github.steveice10.packetlib.ProxyInfo
Gets the proxy's authentication username.
getWriteTimeout() - Method in interface com.github.steveice10.packetlib.Session
Gets the write timeout for this session in seconds.
getWriteTimeout() - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 

H

handlerRemoved(ChannelHandlerContext) - Method in class com.github.steveice10.packetlib.tcp.TcpPacketCompression
 
hasFlag(String) - Method in interface com.github.steveice10.packetlib.Session
Checks whether this session has a flag set.
hasFlag(String) - Method in class com.github.steveice10.packetlib.tcp.TcpServerSession
 
hasFlag(String) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
hasGlobalFlag(String) - Method in class com.github.steveice10.packetlib.AbstractServer
 
hasGlobalFlag(String) - Method in interface com.github.steveice10.packetlib.Server
Checks whether this server has a flag set.

I

isAuthenticated() - Method in class com.github.steveice10.packetlib.ProxyInfo
Gets whether the proxy is authenticated with.
isCancelled() - Method in class com.github.steveice10.packetlib.event.session.PacketSendingEvent
Gets whether the event has been cancelled.
isConnected() - Method in interface com.github.steveice10.packetlib.Session
Returns true if the session is connected.
isConnected() - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
isLengthVariable() - Method in class com.github.steveice10.packetlib.packet.DefaultPacketHeader
 
isLengthVariable() - Method in interface com.github.steveice10.packetlib.packet.PacketHeader
Gets whether the header's length value can vary in size.
isListening() - Method in interface com.github.steveice10.packetlib.Server
Returns true if the listener is listening.
isListening() - Method in class com.github.steveice10.packetlib.tcp.TcpServer
 
isPriority() - Method in class com.github.steveice10.packetlib.packet.BufferedPacket
 
isPriority() - Method in interface com.github.steveice10.packetlib.packet.Packet
Gets whether the packet has handling priority.

N

newClientSession(Session) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Called when a client session is created with this protocol.
newInstance(ByteBuf, H) - Method in class com.github.steveice10.packetlib.codec.PacketDefinition
 
newServerSession(Server, Session) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Called when a server session is created with this protocol.

P

Packet - Interface in com.github.steveice10.packetlib.packet
A network packet.
PacketCodecHelper - Interface in com.github.steveice10.packetlib.codec
 
PacketDefinition<T extends Packet,H extends PacketCodecHelper> - Class in com.github.steveice10.packetlib.codec
Represents a definition of a packet with various information about it, such as it's id, class and factory for construction.
PacketDefinition(int, Class<T>, PacketSerializer<T, H>) - Constructor for class com.github.steveice10.packetlib.codec.PacketDefinition
 
PacketEncryption - Interface in com.github.steveice10.packetlib.crypt
An interface for encrypting packets.
packetError(PacketErrorEvent) - Method in class com.github.steveice10.packetlib.event.session.SessionAdapter
 
packetError(PacketErrorEvent) - Method in interface com.github.steveice10.packetlib.event.session.SessionListener
Called when a session encounters an error while reading or writing packet data.
PacketErrorEvent - Class in com.github.steveice10.packetlib.event.session
Called when a session encounters an error while reading or writing packet data.
PacketErrorEvent(Session, Throwable) - Constructor for class com.github.steveice10.packetlib.event.session.PacketErrorEvent
Creates a new SessionErrorEvent instance.
PacketHeader - Interface in com.github.steveice10.packetlib.packet
The header of a protocol's packets.
PacketProtocol - Class in com.github.steveice10.packetlib.packet
A protocol for packet sending and receiving.
PacketProtocol() - Constructor for class com.github.steveice10.packetlib.packet.PacketProtocol
 
packetReceived(Session, Packet) - Method in class com.github.steveice10.packetlib.event.session.SessionAdapter
 
packetReceived(Session, Packet) - Method in interface com.github.steveice10.packetlib.event.session.SessionListener
Called when a session receives a packet.
packetSending(PacketSendingEvent) - Method in class com.github.steveice10.packetlib.event.session.SessionAdapter
 
packetSending(PacketSendingEvent) - Method in interface com.github.steveice10.packetlib.event.session.SessionListener
Called when a session is sending a packet.
PacketSendingEvent - Class in com.github.steveice10.packetlib.event.session
Called when the session is sending a packet.
PacketSendingEvent(Session, Packet) - Constructor for class com.github.steveice10.packetlib.event.session.PacketSendingEvent
Creates a new PacketSendingEvent instance.
packetSent(Session, Packet) - Method in class com.github.steveice10.packetlib.event.session.SessionAdapter
 
packetSent(Session, Packet) - Method in interface com.github.steveice10.packetlib.event.session.SessionListener
Called when a session sends a packet.
PacketSerializer<T extends Packet,H extends PacketCodecHelper> - Interface in com.github.steveice10.packetlib.codec
 
PRINT_DEBUG - Static variable in class com.github.steveice10.packetlib.BuiltinFlags
When set to true, enables printing internal debug messages.
ProxyInfo - Class in com.github.steveice10.packetlib
Information describing a network proxy.
ProxyInfo(ProxyInfo.Type, SocketAddress) - Constructor for class com.github.steveice10.packetlib.ProxyInfo
Creates a new unauthenticated ProxyInfo instance.
ProxyInfo(ProxyInfo.Type, SocketAddress, String, String) - Constructor for class com.github.steveice10.packetlib.ProxyInfo
Creates a new authenticated ProxyInfo instance.
ProxyInfo.Type - Enum in com.github.steveice10.packetlib
Supported proxy types.

R

readLength(ByteBuf, PacketCodecHelper, int) - Method in class com.github.steveice10.packetlib.packet.DefaultPacketHeader
 
readLength(ByteBuf, PacketCodecHelper, int) - Method in interface com.github.steveice10.packetlib.packet.PacketHeader
Reads the length of a packet from the given input.
readPacketId(ByteBuf, PacketCodecHelper) - Method in class com.github.steveice10.packetlib.packet.DefaultPacketHeader
 
readPacketId(ByteBuf, PacketCodecHelper) - Method in interface com.github.steveice10.packetlib.packet.PacketHeader
Reads the ID of a packet from the given input.
readString(ByteBuf) - Method in class com.github.steveice10.packetlib.codec.BasePacketCodecHelper
 
readString(ByteBuf, int) - Method in class com.github.steveice10.packetlib.codec.BasePacketCodecHelper
 
readString(ByteBuf) - Method in interface com.github.steveice10.packetlib.codec.PacketCodecHelper
 
readString(ByteBuf, int) - Method in interface com.github.steveice10.packetlib.codec.PacketCodecHelper
 
readVarInt(ByteBuf) - Method in class com.github.steveice10.packetlib.codec.BasePacketCodecHelper
 
readVarInt(ByteBuf) - Method in interface com.github.steveice10.packetlib.codec.PacketCodecHelper
 
readVarLong(ByteBuf) - Method in class com.github.steveice10.packetlib.codec.BasePacketCodecHelper
 
readVarLong(ByteBuf) - Method in interface com.github.steveice10.packetlib.codec.PacketCodecHelper
 
register(int, Class<T>, PacketSerializer<T, H>) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Registers a packet to this protocol as both serverbound and clientbound.
register(PacketDefinition<? extends Packet, ?>) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Registers a packet to this protocol as both serverbound and clientbound.
registerClientbound(int, Class<T>, PacketSerializer<T, H>) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Registers a clientbound packet to this protocol.
registerClientbound(PacketDefinition<? extends Packet, ?>) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Registers a clientbound packet to this protocol.
registerServerbound(int, Class<T>, PacketSerializer<T, H>) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Registers a serverbound packet to this protocol.
registerServerbound(PacketDefinition<? extends Packet, ?>) - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
Registers a serverbound packet to this protocol.
removeListener(ServerListener) - Method in class com.github.steveice10.packetlib.AbstractServer
 
removeListener(ServerListener) - Method in interface com.github.steveice10.packetlib.Server
Removes a listener from this server.
removeListener(SessionListener) - Method in interface com.github.steveice10.packetlib.Session
Removes a listener from this session.
removeListener(SessionListener) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
removeSession(Session) - Method in class com.github.steveice10.packetlib.AbstractServer
 

S

send(Packet) - Method in interface com.github.steveice10.packetlib.Session
Sends a packet.
send(Packet) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
serialize(ByteBuf, H, T) - Method in interface com.github.steveice10.packetlib.codec.PacketSerializer
 
serialize(ByteBuf, PacketCodecHelper, BufferedPacket) - Method in class com.github.steveice10.packetlib.packet.BufferedPacket
 
Server - Interface in com.github.steveice10.packetlib
Listens for new sessions to connect.
ServerAdapter - Class in com.github.steveice10.packetlib.event.server
An adapter for picking server events to listen for.
ServerAdapter() - Constructor for class com.github.steveice10.packetlib.event.server.ServerAdapter
 
serverBound(ServerBoundEvent) - Method in class com.github.steveice10.packetlib.event.server.ServerAdapter
 
serverBound(ServerBoundEvent) - Method in interface com.github.steveice10.packetlib.event.server.ServerListener
Called when a server is bound to its host and port.
ServerBoundEvent - Class in com.github.steveice10.packetlib.event.server
Called when the server is bound to its host and port.
ServerBoundEvent(Server) - Constructor for class com.github.steveice10.packetlib.event.server.ServerBoundEvent
Creates a new ServerBoundEvent instance.
serverClosed(ServerClosedEvent) - Method in class com.github.steveice10.packetlib.event.server.ServerAdapter
 
serverClosed(ServerClosedEvent) - Method in interface com.github.steveice10.packetlib.event.server.ServerListener
Called when a server is closed.
ServerClosedEvent - Class in com.github.steveice10.packetlib.event.server
Called when the server is closed.
ServerClosedEvent(Server) - Constructor for class com.github.steveice10.packetlib.event.server.ServerClosedEvent
Creates a new ServerClosedEvent instance.
serverClosing(ServerClosingEvent) - Method in class com.github.steveice10.packetlib.event.server.ServerAdapter
 
serverClosing(ServerClosingEvent) - Method in interface com.github.steveice10.packetlib.event.server.ServerListener
Called when a server is about to close.
ServerClosingEvent - Class in com.github.steveice10.packetlib.event.server
Called when the server is about to close.
ServerClosingEvent(Server) - Constructor for class com.github.steveice10.packetlib.event.server.ServerClosingEvent
Creates a new ServerClosingEvent instance.
ServerEvent - Interface in com.github.steveice10.packetlib.event.server
An event relating to servers.
ServerListener - Interface in com.github.steveice10.packetlib.event.server
A listener for listening to server events.
Session - Interface in com.github.steveice10.packetlib
A network session.
SessionAdapter - Class in com.github.steveice10.packetlib.event.session
An adapter for picking session events to listen for.
SessionAdapter() - Constructor for class com.github.steveice10.packetlib.event.session.SessionAdapter
 
sessionAdded(SessionAddedEvent) - Method in class com.github.steveice10.packetlib.event.server.ServerAdapter
 
sessionAdded(SessionAddedEvent) - Method in interface com.github.steveice10.packetlib.event.server.ServerListener
Called when a session is added to the server.
SessionAddedEvent - Class in com.github.steveice10.packetlib.event.server
Called when a session is added to the server.
SessionAddedEvent(Server, Session) - Constructor for class com.github.steveice10.packetlib.event.server.SessionAddedEvent
Creates a new SessionAddedEvent instance.
SessionEvent - Interface in com.github.steveice10.packetlib.event.session
An event relating to sessions.
SessionListener - Interface in com.github.steveice10.packetlib.event.session
A listener for listening to session events.
sessionRemoved(SessionRemovedEvent) - Method in class com.github.steveice10.packetlib.event.server.ServerAdapter
 
sessionRemoved(SessionRemovedEvent) - Method in interface com.github.steveice10.packetlib.event.server.ServerListener
Called when a session is removed and disconnected from the server.
SessionRemovedEvent - Class in com.github.steveice10.packetlib.event.server
Called when a session is removed and disconnected from the server.
SessionRemovedEvent(Server, Session) - Constructor for class com.github.steveice10.packetlib.event.server.SessionRemovedEvent
Creates a new SessionRemovedEvent instance.
setCancelled(boolean) - Method in class com.github.steveice10.packetlib.event.session.PacketSendingEvent
Sets whether the event should be cancelled.
setCompressionThreshold(int, boolean) - Method in interface com.github.steveice10.packetlib.Session
Sets the compression packet length threshold for this session (-1 = disabled).
setCompressionThreshold(int, boolean) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
setConnectTimeout(int) - Method in interface com.github.steveice10.packetlib.Session
Sets the connect timeout for this session in seconds.
setConnectTimeout(int) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
setFlag(String, Object) - Method in interface com.github.steveice10.packetlib.Session
Sets the value of a flag.
setFlag(String, Object) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
setGlobalFlag(String, Object) - Method in class com.github.steveice10.packetlib.AbstractServer
 
setGlobalFlag(String, Object) - Method in interface com.github.steveice10.packetlib.Server
Sets the value of a flag.
setPacket(Packet) - Method in class com.github.steveice10.packetlib.event.session.PacketSendingEvent
Sets the packet that should be sent as a result of this event.
setReadTimeout(int) - Method in interface com.github.steveice10.packetlib.Session
Sets the read timeout for this session in seconds.
setReadTimeout(int) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
setSuppress(boolean) - Method in class com.github.steveice10.packetlib.event.session.PacketErrorEvent
Sets whether the error should be suppressed.
setWriteTimeout(int) - Method in interface com.github.steveice10.packetlib.Session
Sets the write timeout for this session in seconds.
setWriteTimeout(int) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
 
shouldSuppress() - Method in class com.github.steveice10.packetlib.event.session.PacketErrorEvent
Gets whether the error should be suppressed.

T

TcpClientSession - Class in com.github.steveice10.packetlib.tcp
 
TcpClientSession(String, int, PacketProtocol) - Constructor for class com.github.steveice10.packetlib.tcp.TcpClientSession
 
TcpClientSession(String, int, PacketProtocol, ProxyInfo) - Constructor for class com.github.steveice10.packetlib.tcp.TcpClientSession
 
TcpClientSession(String, int, String, int, PacketProtocol) - Constructor for class com.github.steveice10.packetlib.tcp.TcpClientSession
 
TcpClientSession(String, int, String, int, PacketProtocol, ProxyInfo) - Constructor for class com.github.steveice10.packetlib.tcp.TcpClientSession
 
TcpPacketCodec - Class in com.github.steveice10.packetlib.tcp
 
TcpPacketCodec(Session, boolean) - Constructor for class com.github.steveice10.packetlib.tcp.TcpPacketCodec
 
TcpPacketCompression - Class in com.github.steveice10.packetlib.tcp
 
TcpPacketCompression(Session, boolean) - Constructor for class com.github.steveice10.packetlib.tcp.TcpPacketCompression
 
TcpPacketEncryptor - Class in com.github.steveice10.packetlib.tcp
 
TcpPacketEncryptor(PacketEncryption) - Constructor for class com.github.steveice10.packetlib.tcp.TcpPacketEncryptor
 
TcpPacketSizer - Class in com.github.steveice10.packetlib.tcp
 
TcpPacketSizer(Session, int) - Constructor for class com.github.steveice10.packetlib.tcp.TcpPacketSizer
 
TcpServer - Class in com.github.steveice10.packetlib.tcp
 
TcpServer(String, int, Supplier<? extends PacketProtocol>) - Constructor for class com.github.steveice10.packetlib.tcp.TcpServer
 
TcpServerSession - Class in com.github.steveice10.packetlib.tcp
 
TcpServerSession(String, int, PacketProtocol, TcpServer) - Constructor for class com.github.steveice10.packetlib.tcp.TcpServerSession
 
TcpSession - Class in com.github.steveice10.packetlib.tcp
 
TcpSession(String, int, PacketProtocol) - Constructor for class com.github.steveice10.packetlib.tcp.TcpSession
 
TransportHelper - Class in com.github.steveice10.packetlib.helper
 
TransportHelper() - Constructor for class com.github.steveice10.packetlib.helper.TransportHelper
 
TransportHelper.TransportMethod - Enum in com.github.steveice10.packetlib.helper
 

U

USE_EVENT_LOOP_FOR_PACKETS - Static variable in class com.github.steveice10.packetlib.tcp.TcpSession
Controls whether non-priority packets are handled in a separate event loop

V

valueOf(String) - Static method in enum com.github.steveice10.packetlib.helper.TransportHelper.TransportMethod
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.github.steveice10.packetlib.ProxyInfo.Type
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.github.steveice10.packetlib.helper.TransportHelper.TransportMethod
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.github.steveice10.packetlib.ProxyInfo.Type
Returns an array containing the constants of this enum type, in the order they are declared.

W

writeLength(ByteBuf, PacketCodecHelper, int) - Method in class com.github.steveice10.packetlib.packet.DefaultPacketHeader
 
writeLength(ByteBuf, PacketCodecHelper, int) - Method in interface com.github.steveice10.packetlib.packet.PacketHeader
Writes the length of a packet to the given output.
writePacketId(ByteBuf, PacketCodecHelper, int) - Method in class com.github.steveice10.packetlib.packet.DefaultPacketHeader
 
writePacketId(ByteBuf, PacketCodecHelper, int) - Method in interface com.github.steveice10.packetlib.packet.PacketHeader
Writes the ID of a packet to the given output.
writeString(ByteBuf, String) - Method in class com.github.steveice10.packetlib.codec.BasePacketCodecHelper
 
writeString(ByteBuf, String) - Method in interface com.github.steveice10.packetlib.codec.PacketCodecHelper
 
writeVarInt(ByteBuf, int) - Method in class com.github.steveice10.packetlib.codec.BasePacketCodecHelper
 
writeVarInt(ByteBuf, int) - Method in interface com.github.steveice10.packetlib.codec.PacketCodecHelper
 
writeVarLong(ByteBuf, long) - Method in class com.github.steveice10.packetlib.codec.BasePacketCodecHelper
 
writeVarLong(ByteBuf, long) - Method in interface com.github.steveice10.packetlib.codec.PacketCodecHelper
 
A B C D E G H I N P R S T U V W 
Skip navigation links

Copyright © 2022. All rights reserved.