public static bool AreItemStacksEqual(net.minecraft.src.ItemStack itemstack, net.minecraft.src.ItemStack itemstack1) { if (itemstack == null && itemstack1 == null) { return(true); } if (itemstack == null || itemstack1 == null) { return(false); } else { return(itemstack.IsItemStackEqual(itemstack1)); } }