cn.nukkit.network.protocol.RemoveVolumeEntityPacket Maven / Gradle / Ivy
package cn.nukkit.network.protocol;
import cn.nukkit.api.PowerNukkitOnly;
import cn.nukkit.api.Since;
@PowerNukkitOnly
@Since("1.5.0.0-PN")
public class RemoveVolumeEntityPacket extends DataPacket {
@PowerNukkitOnly
@Since("1.5.0.0-PN")
public static final byte NETWORK_ID = ProtocolInfo.REMOVE_VOLUME_ENTITY_PACKET;
private long id;
/**
* @since v503
*/
private int dimension;
@PowerNukkitOnly
@Since("1.5.0.0-PN")
public RemoveVolumeEntityPacket() {
// Does nothing
}
@Override
public byte pid() {
return NETWORK_ID;
}
@Override
public void decode() {
id = getUnsignedVarInt();
}
@Override
public void encode() {
reset();
putUnsignedVarInt(id);
}
@PowerNukkitOnly
@Since("1.5.0.0-PN")
public long getId() {
return id;
}
@PowerNukkitOnly
@Since("1.5.0.0-PN")
public void setId(long id) {
this.id = id;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy