use of net.glowstone.net.message.SetCompressionMessage in project Glowstone by GlowstoneMC.
the class GlowSession method enableCompression.
public void enableCompression(int threshold) {
// set compression can only be sent once
if (!compresssionSent) {
send(new SetCompressionMessage(threshold));
updatePipeline("compression", new CompressionHandler(threshold));
compresssionSent = true;
}
}
Aggregations