aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kubatech/api/utils/ItemUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/kubatech/api/utils/ItemUtils.java')
-rw-r--r--src/main/java/kubatech/api/utils/ItemUtils.java26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/main/java/kubatech/api/utils/ItemUtils.java b/src/main/java/kubatech/api/utils/ItemUtils.java
deleted file mode 100644
index 2fc34057c3..0000000000
--- a/src/main/java/kubatech/api/utils/ItemUtils.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package kubatech.api.utils;
-
-import net.minecraft.item.ItemStack;
-import net.minecraft.nbt.NBTTagCompound;
-
-public class ItemUtils {
-
- public static NBTTagCompound writeItemStackToNBT(ItemStack stack) {
- NBTTagCompound compound = new NBTTagCompound();
-
- stack.writeToNBT(compound);
- compound.setInteger("IntCount", stack.stackSize);
-
- return compound;
- }
-
- public static ItemStack readItemStackFromNBT(NBTTagCompound compound) {
- ItemStack stack = ItemStack.loadItemStackFromNBT(compound);
-
- if (stack == null) return null;
-
- if (compound.hasKey("IntCount")) stack.stackSize = compound.getInteger("IntCount");
-
- return stack;
- }
-}