Big cleanup

This commit is contained in:
GTNH-Colen committed 2023-10-31 16:10:35 +00:00
1 parent 08f5f74c9f
commit b3896b40a4
12 files changed
+78 -336

No files matched your search

@@ -1,5 +1,7 @@
package com.colen.postea.Utility;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.item.Item;
import net.minecraft.nbt.NBTTagCompound;
public abstract class PosteaUtilities {
@@ -10,17 +12,15 @@ public abstract class PosteaUtilities {
NBTTagCompound tagCompound = new NBTTagCompound();
tagCompound.setString("id", newTileEntityID);
tagCompound.setInteger("x", tag.getInteger("x"));
tagCompound.setInteger("y", tag.getInteger("y"));
tagCompound.setInteger("z", tag.getInteger("z"));
// This part is for tile entities only.
if (tag.hasKey("x") && tag.hasKey("y") && tag.hasKey("z")) {
tagCompound.setInteger("x", tag.getInteger("x"));
tagCompound.setInteger("y", tag.getInteger("y"));
tagCompound.setInteger("z", tag.getInteger("z"));
}
return tagCompound;
}
public static void fixItemStack(NBTTagCompound tag) {
if (tag.hasNoTags()) return;
// Todo {id:5s,Count:4b,Damage:3s}
}
}