Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
SetCompression Class Reference

Set Compression Packet. More...

#include <setcompression.h>

Inheritance diagram for SetCompression:
IPacket

Public Member Functions

 SetCompression (int threshold)
 Construct a new Login Start object.
 
void read (IMCStream *stream) override
 Reads Packet data.
 
- Public Member Functions inherited from IPacket
virtual ~IPacket ()=default
 Destroy the IPacket object.
 
void send (IMCStream *stream)
 Sends a Packet in Minecraft format.
 

Public Attributes

int threshold
 Threshold in size before compressing packets.
 
- Public Attributes inherited from IPacket
int id
 Packet Id.
 

Additional Inherited Members

- Protected Member Functions inherited from IPacket
 IPacket (int id)
 Construct a new IPacket object.
 

Detailed Description

Set Compression Packet.

Is not exposed to lua as it could break if the threshold value is modified.

Member Function Documentation

◆ read()

void SetCompression::read ( IMCStream * stream)
overridevirtual

Reads Packet data.

Parameters
streamthe stream to read from
Deprecated
should not be used, useless

Implements IPacket.


The documentation for this class was generated from the following files: