-Dropped support for golem type api

-Added crafting/uncrafting for disguised armor
This commit is contained in:
makeo committed 2015-12-26 16:28:17 +01:00
1 parent 4bd8d0ce5a
commit aeecdbe33b
12 files changed
+306 -32

No files matched your search

@@ -52,6 +52,18 @@ public class NBTHelper {
}
public static void removePersistentData(Entity entity) {
removePersistentData(entity.getEntityData());
}
public static void removePersistentData(ItemStack item) {
if(item.hasTagCompound()) removePersistentData(item.getTagCompound());
}
public static void removePersistentData(NBTTagCompound base) {
base.removeTag(Gadomancy.MODID);
}
public static NBTTagCompound getData(ItemStack stack) {
NBTTagCompound compound = stack.getTagCompound();
if(compound == null) {