cn.nukkit.entity.data.NBTEntityData Maven / Gradle / Ivy
package cn.nukkit.entity.data;
import cn.nukkit.entity.Entity;
import cn.nukkit.nbt.tag.CompoundTag;
/**
* @author MagicDroidX (Nukkit Project)
*/
public class NBTEntityData extends EntityData {
public CompoundTag tag;
public NBTEntityData(int id, CompoundTag tag) {
super(id);
this.tag = tag;
}
@Override
public CompoundTag getData() {
return this.tag;
}
@Override
public void setData(CompoundTag tag) {
this.tag = tag;
}
@Override
public int getType() {
return Entity.DATA_TYPE_NBT;
}
@Override
public String toString() {
return tag.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy