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

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

There is a newer version: 1.20.40-r1
Show newest version
package cn.nukkit.network.protocol;

import cn.nukkit.api.PowerNukkitXOnly;
import cn.nukkit.api.Since;
import cn.nukkit.lang.TranslationContainer;

@Since("1.6.0.0-PNX")
@PowerNukkitXOnly
public class DeathInfoPacket extends DataPacket{

    public static final byte NETWORK_ID = ProtocolInfo.DEATH_INFO_PACKET;

    public TranslationContainer translation;

    @Override
    public byte pid() {
        return NETWORK_ID;
    }

    @Override
    public void decode() {
        //empty
    }

    @Override
    public void encode() {
        this.reset();
        this.putString(translation.getText());
        this.putArray(translation.getParameters(), this::putString);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy