mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-24 18:44:26 +00:00
Added removeTags() function to ScriptItemStack and isCustomGUI function to ScriptContainer
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user