Added removeTags() function to ScriptItemStack and isCustomGUI function to ScriptContainer

This commit is contained in:
luisc committed 2022-01-12 04:54:07 -06:00
1 parent 6b9cfb9d25
commit 8919a182c5
4 files changed
+15

No files matched your search

@@ -134,6 +134,12 @@ public class ScriptItemStack implements IItemStack {
return ((NBTTagString)tag).func_150285_a_();
return tag;
}
public INbt removeTags() {
ScriptNbt nbt = (ScriptNbt)NpcAPI.Instance().getINbt(item.stackTagCompound);
item.stackTagCompound = null;
return nbt;
}
public boolean isEnchanted(){
return item.isItemEnchanted();