@@ -0,0 +1,709 @@
+package info.u_team.u_team_core.intern.inventory;%0A%0Aimport net.minecraft.inventory.ItemStackHelper;%0Aimport net.minecraft.nbt.CompoundNBT;%0Aimport net.minecraftforge.items.ItemStackHandler;%0A%0Apublic class UItemStackHandler extends ItemStackHandler %7B%0A%09%0A%09public UItemStackHandler(int size) %7B%0A%09%09super(size);%0A%09%7D%0A%09%0A%09@Override%0A%09public void setSize(int size) %7B%0A%09%09throw new UnsupportedOperationException();%0A%09%7D%0A%09%0A%09@Override%0A%09public CompoundNBT serializeNBT() %7B%0A%09%09final CompoundNBT compound = new CompoundNBT();%0A%09%09ItemStackHelper.saveAllItems(compound, stacks, false);%0A%09%09return compound;%0A%09%7D%0A%09%0A%09@Override%0A%09public void deserializeNBT(CompoundNBT compound) %7B%0A%09%09ItemStackHelper.loadAllItems(compound, stacks);%0A%09%09onLoad();%0A%09%7D%0A%7D%0A

Add UItemStackHandler