All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.nukkit.network.protocol.BatchPacket Maven / Gradle / Ivy

There is a newer version: 1.20.40-r1
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy