mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-21 04:22:25 +00:00
-Dropped support for golem type api
-Added crafting/uncrafting for disguised armor
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user