cn.nukkit.network.protocol.BatchPacket Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powernukkit Show documentation
Show all versions of powernukkit Show documentation
A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.
package cn.nukkit.network.protocol;
/**
* @author MagicDroidX (Nukkit Project)
*/
public class BatchPacket extends DataPacket {
public static final byte NETWORK_ID = ProtocolInfo.BATCH_PACKET;
public byte[] payload;
@Override
public byte pid() {
return NETWORK_ID;
}
@Override
public void decode() {
this.payload = this.get();
}
@Override
public void encode() {
}
public void trim() {
setBuffer(null);
}
}