- getAddress() - Method in class com.github.steveice10.packetlib.ProxyInfo
-
Gets the proxy's network address.
- getByteBuffer() - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- getByteBuffer() - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetOutput
-
- 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.
- 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.
- 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.
- getEncryption() - Method in class com.github.steveice10.packetlib.packet.PacketProtocol
-
Gets this protocol's active packet encryption.
- 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.
- getFactory() - Method in class com.github.steveice10.packetlib.packet.PacketDefinition
-
- 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.packet.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.PacketReceivedEvent
-
Gets the packet involved in this event as the required type.
- getPacket() - Method in class com.github.steveice10.packetlib.event.session.PacketSendingEvent
-
Gets the packet involved in this event as the required type.
- getPacket() - Method in class com.github.steveice10.packetlib.event.session.PacketSentEvent
-
Gets the packet involved in this event as the required type.
- getPacketClass() - Method in class com.github.steveice10.packetlib.packet.BufferedPacket
-
- getPacketClass() - Method in class com.github.steveice10.packetlib.packet.PacketDefinition
-
Returns the class of the packet.
- 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
-
- 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.
- 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.PacketReceivedEvent
-
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.
- getSession() - Method in class com.github.steveice10.packetlib.event.session.PacketSentEvent
-
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
-
- Packet - Interface in com.github.steveice10.packetlib.packet
-
A network packet.
- PacketDefinition<T extends Packet> - Class in com.github.steveice10.packetlib.packet
-
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>, PacketFactory<T>) - Constructor for class com.github.steveice10.packetlib.packet.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.
- PacketFactory<T extends Packet> - Interface in com.github.steveice10.packetlib.packet
-
Factory for constructing
Packets.
- 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(PacketReceivedEvent) - Method in class com.github.steveice10.packetlib.event.session.SessionAdapter
-
- packetReceived(PacketReceivedEvent) - Method in interface com.github.steveice10.packetlib.event.session.SessionListener
-
Called when a session receives a packet.
- PacketReceivedEvent - Class in com.github.steveice10.packetlib.event.session
-
Called when the session receives a packet.
- PacketReceivedEvent(Session, Packet) - Constructor for class com.github.steveice10.packetlib.event.session.PacketReceivedEvent
-
Creates a new PacketReceivedEvent instance.
- 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(PacketSentEvent) - Method in class com.github.steveice10.packetlib.event.session.SessionAdapter
-
- packetSent(PacketSentEvent) - Method in interface com.github.steveice10.packetlib.event.session.SessionListener
-
Called when a session sends a packet.
- PacketSentEvent - Class in com.github.steveice10.packetlib.event.session
-
Called when the session has sent a packet.
- PacketSentEvent(Session, Packet) - Constructor for class com.github.steveice10.packetlib.event.session.PacketSentEvent
-
Creates a new PacketSentEvent instance.
- 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.
- readBoolean() - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readBoolean() - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next boolean.
- readBoolean() - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readBoolean() - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readByte() - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readByte() - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next byte.
- readByte() - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readByte() - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readBytes(int) - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readBytes(byte[]) - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readBytes(byte[], int, int) - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readBytes(int) - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next byte array.
- readBytes(byte[]) - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads as much data as possible into the given byte array.
- readBytes(byte[], int, int) - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the given amount of bytes into the given array at the given offset.
- readBytes(int) - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readBytes(byte[]) - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readBytes(byte[], int, int) - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readBytes(int) - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readBytes(byte[]) - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readBytes(byte[], int, int) - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readChar() - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readChar() - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next char.
- readChar() - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readChar() - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readDouble() - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readDouble() - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next double.
- readDouble() - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readDouble() - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readEnum(T[]) - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next enum.
- readFloat() - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readFloat() - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next float.
- readFloat() - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readFloat() - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readInt() - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readInt() - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next integer.
- readInt() - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readInt() - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readInts(int) - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readInts(int[]) - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readInts(int[], int, int) - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readInts(int) - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next int array.
- readInts(int[]) - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads as much data as possible into the given int array.
- readInts(int[], int, int) - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the given amount of ints into the given array at the given offset.
- readInts(int) - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readInts(int[]) - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readInts(int[], int, int) - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readInts(int) - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readInts(int[]) - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readInts(int[], int, int) - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readLength(NetInput, int) - Method in class com.github.steveice10.packetlib.packet.DefaultPacketHeader
-
- readLength(NetInput, int) - Method in interface com.github.steveice10.packetlib.packet.PacketHeader
-
Reads the length of a packet from the given input.
- readLong() - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readLong() - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next long.
- readLong() - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readLong() - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readLongs(int) - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readLongs(long[]) - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readLongs(long[], int, int) - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readLongs(int) - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next long array.
- readLongs(long[]) - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads as much data as possible into the given long array.
- readLongs(long[], int, int) - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the given amount of longs into the given array at the given offset.
- readLongs(int) - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readLongs(long[]) - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readLongs(long[], int, int) - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readLongs(int) - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readLongs(long[]) - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readLongs(long[], int, int) - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readPacketId(NetInput) - Method in class com.github.steveice10.packetlib.packet.DefaultPacketHeader
-
- readPacketId(NetInput) - Method in interface com.github.steveice10.packetlib.packet.PacketHeader
-
Reads the ID of a packet from the given input.
- readShort() - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readShort() - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next short.
- readShort() - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readShort() - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readShorts(int) - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readShorts(short[]) - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readShorts(short[], int, int) - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readShorts(int) - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next short array.
- readShorts(short[]) - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads as much data as possible into the given short array.
- readShorts(short[], int, int) - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the given amount of shorts into the given array at the given offset.
- readShorts(int) - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readShorts(short[]) - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readShorts(short[], int, int) - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readShorts(int) - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readShorts(short[]) - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readShorts(short[], int, int) - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readString() - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readString() - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next string.
- readString() - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readString() - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readUnsignedByte() - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readUnsignedByte() - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next unsigned byte.
- readUnsignedByte() - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readUnsignedByte() - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readUnsignedShort() - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readUnsignedShort() - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next unsigned short.
- readUnsignedShort() - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readUnsignedShort() - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readUUID() - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readUUID() - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next UUID.
- readUUID() - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readUUID() - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readVarInt() - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readVarInt() - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next varint.
- readVarInt() - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readVarInt() - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- readVarLong() - Method in class com.github.steveice10.packetlib.io.buffer.ByteBufferNetInput
-
- readVarLong() - Method in interface com.github.steveice10.packetlib.io.NetInput
-
Reads the next varlong.
- readVarLong() - Method in class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
- readVarLong() - Method in class com.github.steveice10.packetlib.tcp.io.ByteBufNetInput
-
- register(int, Class<T>, PacketFactory<T>) - 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>, PacketFactory<T>) - 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>, PacketFactory<T>) - 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
-
- send(Packet) - Method in interface com.github.steveice10.packetlib.Session
-
Sends a packet.
- send(Packet) - Method in class com.github.steveice10.packetlib.tcp.TcpSession
-
- 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) - Method in interface com.github.steveice10.packetlib.Session
-
Sets the compression packet length threshold for this session (-1 = disabled).
- setCompressionThreshold(int) - 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.
- StreamNetInput - Class in com.github.steveice10.packetlib.io.stream
-
A NetInput implementation using an InputStream as a backend.
- StreamNetInput(InputStream) - Constructor for class com.github.steveice10.packetlib.io.stream.StreamNetInput
-
Creates a new StreamNetInput instance.
- StreamNetOutput - Class in com.github.steveice10.packetlib.io.stream
-
A NetOutput implementation using an OutputStream as a backend.
- StreamNetOutput(OutputStream) - Constructor for class com.github.steveice10.packetlib.io.stream.StreamNetOutput
-
Creates a new StreamNetOutput instance.