diff --git a/src/main/java/noppes/npcs/scripted/entity/ScriptEntity.java b/src/main/java/noppes/npcs/scripted/entity/ScriptEntity.java index f52538367..41d438434 100644 --- a/src/main/java/noppes/npcs/scripted/entity/ScriptEntity.java +++ b/src/main/java/noppes/npcs/scripted/entity/ScriptEntity.java @@ -502,6 +502,12 @@ public class ScriptEntity implements IEntity { return NpcAPI.Instance().getINbt(this.entity.getEntityData()); } + public INbt getAllNbt() { + NBTTagCompound compound = new NBTTagCompound(); + this.entity.writeToNBT(compound); + return NpcAPI.Instance().getINbt(compound); + } + public void setNbt(INbt nbt) { this.entity.readFromNBT(nbt.getMCNBT()); }