cn.nukkit.entity.data.NBTEntityData 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.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;
}
}